diff --git a/cmd/root.go b/cmd/root.go index 0165286d..f01e8bee 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -45,6 +45,6 @@ func Execute() { } func init() { - RootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.mctl.yml)") + RootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $XDG_CONFIG_HOME/mctl/config.yml)") RootCmd.PersistentFlags().BoolVar(&reAuth, "reauth", false, "re-authenticate with oauth services") } diff --git a/docs/mctl.md b/docs/mctl.md index d7b2a5f4..b0962abb 100644 --- a/docs/mctl.md +++ b/docs/mctl.md @@ -7,7 +7,7 @@ mctl is a CLI utility to interact with metal toolbox services ### Options ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) -h, --help help for mctl --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_completion.md b/docs/mctl_completion.md index bb561bf2..9e611db8 100644 --- a/docs/mctl_completion.md +++ b/docs/mctl_completion.md @@ -19,7 +19,7 @@ See each sub-command's help for details on how to use the generated script. ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_completion_bash.md b/docs/mctl_completion_bash.md index fed9864b..df5d2ad1 100644 --- a/docs/mctl_completion_bash.md +++ b/docs/mctl_completion_bash.md @@ -42,7 +42,7 @@ mctl completion bash ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_completion_fish.md b/docs/mctl_completion_fish.md index 7e77d3d2..2445f230 100644 --- a/docs/mctl_completion_fish.md +++ b/docs/mctl_completion_fish.md @@ -33,7 +33,7 @@ mctl completion fish [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_completion_powershell.md b/docs/mctl_completion_powershell.md index 259357d4..ff5b1f6e 100644 --- a/docs/mctl_completion_powershell.md +++ b/docs/mctl_completion_powershell.md @@ -30,7 +30,7 @@ mctl completion powershell [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_completion_zsh.md b/docs/mctl_completion_zsh.md index d70b0786..34c7098f 100644 --- a/docs/mctl_completion_zsh.md +++ b/docs/mctl_completion_zsh.md @@ -44,7 +44,7 @@ mctl completion zsh [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_create.md b/docs/mctl_create.md index 620b0cc6..9f52038a 100644 --- a/docs/mctl_create.md +++ b/docs/mctl_create.md @@ -17,7 +17,7 @@ mctl create [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_create_firmware-set.md b/docs/mctl_create_firmware-set.md index b1c73a30..fad4857c 100644 --- a/docs/mctl_create_firmware-set.md +++ b/docs/mctl_create_firmware-set.md @@ -20,7 +20,7 @@ mctl create firmware-set [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_create_firmware.md b/docs/mctl_create_firmware.md index 8ffa2f95..d3985707 100644 --- a/docs/mctl_create_firmware.md +++ b/docs/mctl_create_firmware.md @@ -18,7 +18,7 @@ mctl create firmware [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_delete.md b/docs/mctl_delete.md index 82e2ef2d..35360822 100644 --- a/docs/mctl_delete.md +++ b/docs/mctl_delete.md @@ -17,7 +17,7 @@ mctl delete [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_delete_condition.md b/docs/mctl_delete_condition.md index d47bbf53..8be80b86 100644 --- a/docs/mctl_delete_condition.md +++ b/docs/mctl_delete_condition.md @@ -19,7 +19,7 @@ mctl delete condition [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_delete_firmware-set.md b/docs/mctl_delete_firmware-set.md index e44aa1ae..6e988892 100644 --- a/docs/mctl_delete_firmware-set.md +++ b/docs/mctl_delete_firmware-set.md @@ -18,7 +18,7 @@ mctl delete firmware-set [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_edit.md b/docs/mctl_edit.md index 8caa46c2..7beec132 100644 --- a/docs/mctl_edit.md +++ b/docs/mctl_edit.md @@ -17,7 +17,7 @@ mctl edit [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_edit_firmware-set.md b/docs/mctl_edit_firmware-set.md index 24af41b5..84e1d57b 100644 --- a/docs/mctl_edit_firmware-set.md +++ b/docs/mctl_edit_firmware-set.md @@ -22,7 +22,7 @@ mctl edit firmware-set [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_gendocs.md b/docs/mctl_gendocs.md index 2436a08d..ddf69398 100644 --- a/docs/mctl_gendocs.md +++ b/docs/mctl_gendocs.md @@ -17,7 +17,7 @@ mctl gendocs [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_get.md b/docs/mctl_get.md index 22bfc5e9..c62d8692 100644 --- a/docs/mctl_get.md +++ b/docs/mctl_get.md @@ -18,7 +18,7 @@ mctl get [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_get_bios-config.md b/docs/mctl_get_bios-config.md index 79347d80..2eed8a72 100644 --- a/docs/mctl_get_bios-config.md +++ b/docs/mctl_get_bios-config.md @@ -18,7 +18,7 @@ mctl get bios-config [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) -o, --output string {json|text} (default "json") --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_get_component.md b/docs/mctl_get_component.md index 2b3559f3..35acaea8 100644 --- a/docs/mctl_get_component.md +++ b/docs/mctl_get_component.md @@ -19,7 +19,7 @@ mctl get component [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) -o, --output string {json|text} (default "json") --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_get_condition.md b/docs/mctl_get_condition.md index 871df963..b6005a16 100644 --- a/docs/mctl_get_condition.md +++ b/docs/mctl_get_condition.md @@ -19,7 +19,7 @@ mctl get condition [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) -o, --output string {json|text} (default "json") --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_get_firmware-set.md b/docs/mctl_get_firmware-set.md index 8db0c861..f604492a 100644 --- a/docs/mctl_get_firmware-set.md +++ b/docs/mctl_get_firmware-set.md @@ -19,7 +19,7 @@ mctl get firmware-set [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) -o, --output string {json|text} (default "json") --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_get_firmware.md b/docs/mctl_get_firmware.md index 5cb6771d..77a66fea 100644 --- a/docs/mctl_get_firmware.md +++ b/docs/mctl_get_firmware.md @@ -18,7 +18,7 @@ mctl get firmware [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) -o, --output string {json|text} (default "json") --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_install.md b/docs/mctl_install.md index f037db6b..cfeaf269 100644 --- a/docs/mctl_install.md +++ b/docs/mctl_install.md @@ -17,7 +17,7 @@ mctl install [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_install_firmware-set.md b/docs/mctl_install_firmware-set.md index 6b735472..2c3e3188 100644 --- a/docs/mctl_install_firmware-set.md +++ b/docs/mctl_install_firmware-set.md @@ -21,7 +21,7 @@ mctl install firmware-set [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_install_status.md b/docs/mctl_install_status.md index 51d72191..b262d558 100644 --- a/docs/mctl_install_status.md +++ b/docs/mctl_install_status.md @@ -18,7 +18,7 @@ mctl install status --server | -s [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_list.md b/docs/mctl_list.md index fca000ef..8244623c 100644 --- a/docs/mctl_list.md +++ b/docs/mctl_list.md @@ -18,7 +18,7 @@ mctl list [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_list_condition.md b/docs/mctl_list_condition.md index f771ae49..59960e6f 100644 --- a/docs/mctl_list_condition.md +++ b/docs/mctl_list_condition.md @@ -19,7 +19,7 @@ mctl list condition [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --output-json Output listing as JSON --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_list_firmware-set.md b/docs/mctl_list_firmware-set.md index 493e7774..820f558d 100644 --- a/docs/mctl_list_firmware-set.md +++ b/docs/mctl_list_firmware-set.md @@ -20,7 +20,7 @@ mctl list firmware-set [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --output-json Output listing as JSON --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_list_firmware.md b/docs/mctl_list_firmware.md index c0a886fa..b100a7a3 100644 --- a/docs/mctl_list_firmware.md +++ b/docs/mctl_list_firmware.md @@ -17,7 +17,7 @@ mctl list firmware [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --output-json Output listing as JSON --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_version.md b/docs/mctl_version.md index 9ef59a49..536c3710 100644 --- a/docs/mctl_version.md +++ b/docs/mctl_version.md @@ -17,7 +17,7 @@ mctl version [flags] ### Options inherited from parent commands ``` - --config string config file (default is $HOME/.mctl.yml) + --config string config file (default is $XDG_CONFIG_HOME/mctl/config.yml) --reauth re-authenticate with oauth services ```