Skip to content

Commit 74c9ce8

Browse files
authored
Remove deprecated options (#602)
1 parent 052a356 commit 74c9ce8

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

cmd/core_options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var coreOptionsCmd = &cobra.Command{
1717
This command allows you to set configuration options for the Home Assistant Core
1818
instance running on your Home Assistant system.`,
1919
Example: `
20-
ha core options --wait_boot 600`,
20+
ha core options --backups-exclude-database=true`,
2121
ValidArgsFunction: cobra.NoFileCompletions,
2222
Args: cobra.NoArgs,
2323
Run: func(cmd *cobra.Command, args []string) {

cmd/supervisor_options.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)