@ -77,7 +77,8 @@ Environment:
`
func newRootCmd ( args [ ] string ) * cobra . Command {
// NewRootCmd returns cobra.Command for the root command of helm CLI
func NewRootCmd ( args [ ] string ) * cobra . Command {
cmd := & cobra . Command {
Use : "helm" ,
Short : "The Helm package manager for Kubernetes." ,
@ -112,42 +113,42 @@ func newRootCmd(args []string) *cobra.Command {
cmd . AddCommand (
// chart commands
n ewCreateCmd( out ) ,
n ewDependencyCmd( out ) ,
n ewFetchCmd( out ) ,
n ewInspectCmd( out ) ,
n ewLintCmd( out ) ,
n ewPackageCmd( out ) ,
n ewRepoCmd( out ) ,
n ewSearchCmd( out ) ,
n ewServeCmd( out ) ,
n ewVerifyCmd( out ) ,
N ewCreateCmd( out ) ,
N ewDependencyCmd( out ) ,
N ewFetchCmd( out ) ,
N ewInspectCmd( out ) ,
N ewLintCmd( out ) ,
N ewPackageCmd( out ) ,
N ewRepoCmd( out ) ,
N ewSearchCmd( out ) ,
N ewServeCmd( out ) ,
N ewVerifyCmd( out ) ,
// release commands
n ewDeleteCmd( nil , out ) ,
n ewGetCmd( nil , out ) ,
n ewHistoryCmd( nil , out ) ,
n ewInstallCmd( nil , out ) ,
n ewListCmd( nil , out ) ,
n ewRollbackCmd( nil , out ) ,
n ewStatusCmd( nil , out ) ,
n ewUpgradeCmd( nil , out ) ,
n ewReleaseTestCmd( nil , out ) ,
n ewResetCmd( nil , out ) ,
n ewVersionCmd( nil , out ) ,
n ewCompletionCmd( out ) ,
n ewHomeCmd( out ) ,
n ewInitCmd( out ) ,
n ewPluginCmd( out ) ,
n ewTemplateCmd( out ) ,
N ewDeleteCmd( nil , out ) ,
N ewGetCmd( nil , out ) ,
N ewHistoryCmd( nil , out ) ,
N ewInstallCmd( nil , out ) ,
N ewListCmd( nil , out ) ,
N ewRollbackCmd( nil , out ) ,
N ewStatusCmd( nil , out ) ,
N ewUpgradeCmd( nil , out ) ,
N ewReleaseTestCmd( nil , out ) ,
N ewResetCmd( nil , out ) ,
N ewVersionCmd( nil , out ) ,
N ewCompletionCmd( out ) ,
N ewHomeCmd( out ) ,
N ewInitCmd( out ) ,
N ewPluginCmd( out ) ,
N ewTemplateCmd( out ) ,
// Hidden documentation generator command: 'helm docs'
n ewDocsCmd( out ) ,
N ewDocsCmd( out ) ,
// Deprecated
markDeprecated ( n ewRepoUpdateCmd( out ) , "use 'helm repo update'\n" ) ,
markDeprecated ( N ewRepoUpdateCmd( out ) , "use 'helm repo update'\n" ) ,
)
flags . Parse ( args )
@ -167,7 +168,7 @@ func init() {
}
func main ( ) {
cmd := n ewRootCmd( os . Args [ 1 : ] )
cmd := N ewRootCmd( os . Args [ 1 : ] )
if err := cmd . Execute ( ) ; err != nil {
switch e := err . ( type ) {
case pluginError :