diff --git a/pkg/cmd/root/root.go b/pkg/cmd/root/root.go index 7155a218d..67b81ca62 100644 --- a/pkg/cmd/root/root.go +++ b/pkg/cmd/root/root.go @@ -73,6 +73,7 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command { // Child commands cmd.AddCommand(versionCmd.NewCmdVersion(f, version, buildDate)) + cmd.AddCommand(actionsCmd.NewCmdActions(f)) cmd.AddCommand(aliasCmd.NewCmdAlias(f)) cmd.AddCommand(authCmd.NewCmdAuth(f)) cmd.AddCommand(configCmd.NewCmdConfig(f)) @@ -82,10 +83,6 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command { cmd.AddCommand(secretCmd.NewCmdSecret(f)) cmd.AddCommand(sshKeyCmd.NewCmdSSHKey(f)) - cmd.AddCommand(actionsCmd.NewCmdActions(f)) - cmd.AddCommand(runCmd.NewCmdRun(f)) - cmd.AddCommand(workflowCmd.NewCmdWorkflow(f)) - // the `api` command should not inherit any extra HTTP headers bareHTTPCmdFactory := *f bareHTTPCmdFactory.HttpClient = bareHTTPClient(f, version) @@ -100,6 +97,8 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command { cmd.AddCommand(issueCmd.NewCmdIssue(&repoResolvingCmdFactory)) cmd.AddCommand(releaseCmd.NewCmdRelease(&repoResolvingCmdFactory)) cmd.AddCommand(repoCmd.NewCmdRepo(&repoResolvingCmdFactory)) + cmd.AddCommand(runCmd.NewCmdRun(&repoResolvingCmdFactory)) + cmd.AddCommand(workflowCmd.NewCmdWorkflow(&repoResolvingCmdFactory)) // Help topics cmd.AddCommand(NewHelpTopic("environment"))