Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

refactor root cmd init #709

Merged
merged 1 commit into from Apr 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 18 additions & 16 deletions cmd/duffle/root.go
Expand Up @@ -41,22 +41,24 @@ func newRootCmd(outputRedirect io.Writer) *cobra.Command {
p.StringVar(&duffleHome, "home", defaultDuffleHome(), "location of your Duffle config. Overrides $DUFFLE_HOME")
p.BoolVarP(&verbose, "verbose", "v", false, "enable verbose output")

cmd.AddCommand(newBuildCmd(outLog))
cmd.AddCommand(newBundleCmd(outLog))
cmd.AddCommand(newInitCmd(outLog))
cmd.AddCommand(newShowCmd(outLog))
cmd.AddCommand(newListCmd(outLog))
cmd.AddCommand(newVersionCmd(outLog))
cmd.AddCommand(newInstallCmd(outLog))
cmd.AddCommand(newStatusCmd(outLog))
cmd.AddCommand(newUninstallCmd(outLog))
cmd.AddCommand(newUpgradeCmd(outLog))
cmd.AddCommand(newRunCmd(outLog))
cmd.AddCommand(newCredentialsCmd(outLog))
cmd.AddCommand(newClaimsCmd(outLog))
cmd.AddCommand(newExportCmd(outLog))
cmd.AddCommand(newImportCmd(outLog))
cmd.AddCommand(newCreateCmd(outLog))
cmd.AddCommand(
newBuildCmd(outLog),
newBundleCmd(outLog),
newInitCmd(outLog),
newShowCmd(outLog),
newListCmd(outLog),
newVersionCmd(outLog),
newInstallCmd(outLog),
newStatusCmd(outLog),
newUninstallCmd(outLog),
newUpgradeCmd(outLog),
newRunCmd(outLog),
newCredentialsCmd(outLog),
newClaimsCmd(outLog),
newExportCmd(outLog),
newImportCmd(outLog),
newCreateCmd(outLog),
)

return cmd
}