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: cmd/root.go
+21-11Lines changed: 21 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,14 @@ import (
30
30
funcExecute(ctx context.Context, versionstring) {
31
31
input:=new(Input)
32
32
varrootCmd=&cobra.Command{
33
-
Use: "act [event name to run] [flags]\n\nIf no event name passed, will default to \"on: push\"\nIf actions handles only one event it will be used as default instead of \"on: push\"",
34
-
Short: "Run GitHub actions locally by specifying the event name (e.g. `push`) or an action name directly.",
35
-
Args: cobra.MaximumNArgs(1),
36
-
RunE: newRunCommand(ctx, input),
37
-
PersistentPreRun: setupLogging,
38
-
Version: version,
39
-
SilenceUsage: true,
33
+
Use: "act [event name to run] [flags]\n\nIf no event name passed, will default to \"on: push\"\nIf actions handles only one event it will be used as default instead of \"on: push\"",
34
+
Short: "Run GitHub actions locally by specifying the event name (e.g. `push`) or an action name directly.",
35
+
Args: cobra.MaximumNArgs(1),
36
+
RunE: newRunCommand(ctx, input),
37
+
PersistentPreRun: setup(input),
38
+
PersistentPostRun: cleanup(input),
39
+
Version: version,
40
+
SilenceUsage: true,
40
41
}
41
42
rootCmd.Flags().BoolP("watch", "w", false, "watch the contents of the local repo and run when files change")
0 commit comments