@@ -54,18 +54,6 @@ Supervisor running on your Home Assistant system.`,
5454 }
5555 }
5656
57- waitboot , _ := cmd .Flags ().GetInt ("wait-boot" )
58- if cmd .Flags ().Changed ("wait-boot" ) {
59- options ["wait_boot" ] = waitboot
60- }
61-
62- repos , err := cmd .Flags ().GetStringArray ("repositories" )
63- log .WithField ("repositories" , repos ).Debug ("repos" )
64-
65- if len (repos ) >= 1 && err == nil {
66- options ["addons_repositories" ] = repos
67- }
68-
6957 resp , err := helper .GenericJSONPost (section , command , options )
7058 if err != nil {
7159 helper .PrintError (err )
@@ -82,12 +70,10 @@ func init() {
8270 supervisorOptionsCmd .Flags ().StringP ("detect-blocking-io" , "" , "" , "Detect blocking IO (on|on-at-startup|off)" )
8371 supervisorOptionsCmd .Flags ().StringP ("timezone" , "t" , "" , "Timezone" )
8472 supervisorOptionsCmd .Flags ().StringP ("logging" , "l" , "" , "Logging: debug|info|warning|error|critical" )
85- supervisorOptionsCmd .Flags ().IntP ("wait-boot" , "w" , 0 , "Seconds to wait after boot" )
8673 supervisorOptionsCmd .Flags ().BoolP ("debug" , "" , false , "Enable debug mode" )
8774 supervisorOptionsCmd .Flags ().BoolP ("debug-block" , "" , false , "Enable debug mode with blocking startup" )
8875 supervisorOptionsCmd .Flags ().BoolP ("diagnostics" , "" , false , "Enable diagnostics mode" )
8976 supervisorOptionsCmd .Flags ().BoolP ("auto-update" , "" , true , "Enable/disable supervisor auto update" )
90- supervisorOptionsCmd .Flags ().StringArrayP ("repositories" , "r" , []string {}, "repositories to track, can be supplied multiple times" )
9177
9278 supervisorOptionsCmd .Flags ().Lookup ("debug" ).NoOptDefVal = "false"
9379 supervisorOptionsCmd .Flags ().Lookup ("debug-block" ).NoOptDefVal = "false"
@@ -105,11 +91,9 @@ func init() {
10591 supervisorOptionsCmd .RegisterFlagCompletionFunc ("logging" , func (cmd * cobra.Command , args []string , toComplete string ) ([]string , cobra.ShellCompDirective ) {
10692 return []string {"debug" , "info" , "warning" , "error" , "critical" }, cobra .ShellCompDirectiveNoFileComp
10793 })
108- supervisorOptionsCmd .RegisterFlagCompletionFunc ("wait-boot" , cobra .NoFileCompletions )
10994 supervisorOptionsCmd .RegisterFlagCompletionFunc ("debug" , boolCompletions )
11095 supervisorOptionsCmd .RegisterFlagCompletionFunc ("debug-block" , boolCompletions )
11196 supervisorOptionsCmd .RegisterFlagCompletionFunc ("diagnostics" , boolCompletions )
112- supervisorOptionsCmd .RegisterFlagCompletionFunc ("repositories" , cobra .NoFileCompletions )
11397
11498 supervisorCmd .AddCommand (supervisorOptionsCmd )
11599}
0 commit comments