@@ -12,10 +12,11 @@ import (
1212)
1313
1414var (
15- interactiveMode bool
16- installLogging bool
17- autoDiscoveryMode bool
18- recipeFriendlyNames []string
15+ specifyActions bool
16+ interactiveMode bool
17+ installLogging bool
18+ recipeNames []string
19+ recipeFilenames []string
1920)
2021
2122// Command represents the install command.
@@ -25,10 +26,11 @@ var Command = &cobra.Command{
2526 Hidden : true ,
2627 Run : func (cmd * cobra.Command , args []string ) {
2728 ic := installContext {
28- interactiveMode : interactiveMode ,
29- installLogging : installLogging ,
30- autoDiscoveryMode : autoDiscoveryMode ,
31- recipeFriendlyNames : recipeFriendlyNames ,
29+ interactiveMode : interactiveMode ,
30+ installLogging : installLogging ,
31+ recipeNames : recipeNames ,
32+ recipeFilenames : recipeFilenames ,
33+ specifyActions : specifyActions ,
3234 }
3335
3436 client .WithClientAndProfile (func (nrClient * newrelic.NewRelic , profile * credentials.Profile ) {
@@ -54,8 +56,9 @@ var Command = &cobra.Command{
5456}
5557
5658func init () {
57- Command .Flags ().BoolVarP (& interactiveMode , "interactive" , "i" , true , "enables interactive mode" )
58- Command .Flags ().BoolVarP (& installLogging , "installLogging" , "l" , true , "installs New Relic logging" )
59- Command .Flags ().BoolVarP (& autoDiscoveryMode , "autoDiscovery" , "d" , true , "enables auto-discovery mode" )
60- Command .Flags ().StringSliceVarP (& recipeFriendlyNames , "recipe" , "r" , []string {}, "the name of a recipe to install" )
59+ Command .Flags ().BoolVarP (& interactiveMode , "interactive" , "i" , false , "enables interactive mode if specifyActions has been used" )
60+ Command .Flags ().BoolVarP (& installLogging , "installLogging" , "l" , false , "installs New Relic logging if specifyActions has been used" )
61+ Command .Flags ().BoolVarP (& specifyActions , "specifyActions" , "s" , false , "specify the actions to be run during install" )
62+ Command .Flags ().StringSliceVarP (& recipeNames , "recipe" , "r" , []string {}, "the name of a recipe to install" )
63+ Command .Flags ().StringSliceVarP (& recipeFilenames , "recipeFile" , "c" , []string {}, "a recipe file to install" )
6164}
0 commit comments