You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6a668fc
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Add --feature-flag option to supervisor options command (#649)
* Add --feature-flag option to supervisor options command
Allows users to enable/disable development feature flags via:
ha supervisor options --feature-flag supervisor_v2_api=true
ha supervisor options --feature-flag supervisor_v2_api (defaults to true)
ha supervisor options --feature-flag supervisor_v2_api=false
Multiple flags can be set by repeating the argument. Tab completion
calls /supervisor/info and suggests each flag with its opposite value
(e.g. supervisor_v2_api=true when currently false).
Related: home-assistant/supervisor#6719
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Format file
* Update cmd/supervisor_options.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Stefan Agner <stefan@agner.ch>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
supervisorOptionsCmd.Flags().BoolP("auto-update", "", true, "Enable/disable supervisor auto update")
106
+
supervisorOptionsCmd.Flags().StringArrayP("feature-flag", "", []string{}, "Set a development feature flag (name=true|false). Use multiple times for multiple flags.")
0 commit comments