You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GUIDE.md
+28-19Lines changed: 28 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,40 +64,49 @@ func run() error {
64
64
There is no special methods, config fields to propagate flags to subcommands. However it's not hard to make this, because every command can access predefined flags, which are shared across handlers.
65
65
66
66
```go
67
-
type commonFlags struct {
67
+
// generalFlags can be used as flags for all command
68
+
type generalFlags struct {
68
69
IsVerbosebool
70
+
Dirstring
69
71
}
70
72
71
-
// NOTE: should be added before flag.FlagSet method Parse().
0 commit comments