Skip to content

Commit 8ffb782

Browse files
chore: remove notices service (#72)
1 parent cef5575 commit 8ffb782

File tree

2 files changed

+7
-159
lines changed

2 files changed

+7
-159
lines changed

cmd/notices.go

Lines changed: 0 additions & 144 deletions
This file was deleted.

cmd/root.go

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,13 @@ func Execute(ctx context.Context, version string) {
5555

5656
func createRootCommand(ctx context.Context, input *Input, version string) *cobra.Command {
5757
rootCmd := &cobra.Command{
58-
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\"",
59-
Short: "Run GitHub actions locally by specifying the event name (e.g. `push`) or an action name directly.",
60-
Args: cobra.MaximumNArgs(1),
61-
RunE: newRunCommand(ctx, input),
62-
PersistentPreRun: setup(input),
63-
PersistentPostRun: cleanup(input),
64-
Version: version,
65-
SilenceUsage: true,
58+
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\"",
59+
Short: "Run GitHub actions locally by specifying the event name (e.g. `push`) or an action name directly.",
60+
Args: cobra.MaximumNArgs(1),
61+
RunE: newRunCommand(ctx, input),
62+
PersistentPreRun: setup(input),
63+
Version: version,
64+
SilenceUsage: true,
6665
}
6766

6867
rootCmd.Flags().BoolP("watch", "w", false, "watch the contents of the local repo and run when files change")
@@ -303,13 +302,6 @@ func setup(_ *Input) func(*cobra.Command, []string) {
303302
if verbose {
304303
log.SetLevel(log.DebugLevel)
305304
}
306-
loadVersionNotices(cmd.Version)
307-
}
308-
}
309-
310-
func cleanup(inputs *Input) func(*cobra.Command, []string) {
311-
return func(_ *cobra.Command, _ []string) {
312-
displayNotices(inputs)
313305
}
314306
}
315307

0 commit comments

Comments
 (0)