diff --git a/cmd/root.go b/cmd/root.go index 0165286d..0f6e83ba 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_DIR/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..1778e710 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_DIR/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..de1ac177 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_DIR/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..17ae9db4 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_DIR/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..2a9b1161 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_DIR/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..9696051c 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_DIR/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..463077ad 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_DIR/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_create.md b/docs/mctl_create.md index 620b0cc6..f13d49a0 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_DIR/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..0e3c770e 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_DIR/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..4cdadca5 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_DIR/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_delete.md b/docs/mctl_delete.md index 82e2ef2d..a919d9a9 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_DIR/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..7de32d9f 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_DIR/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..b4454b76 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_DIR/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_edit.md b/docs/mctl_edit.md index 8caa46c2..8a6bed7b 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_DIR/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..14726993 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_DIR/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_gendocs.md b/docs/mctl_gendocs.md index 2436a08d..063f56b4 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_DIR/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_get.md b/docs/mctl_get.md index 22bfc5e9..cb4910eb 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_DIR/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..cc9e1897 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_DIR/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..66b18174 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_DIR/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..7aa8d4a1 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_DIR/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..7b34e448 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_DIR/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..360e8edc 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_DIR/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..b8f924cb 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_DIR/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..0b6bc0f6 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_DIR/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..8afbdecd 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_DIR/mctl/config.yml) --reauth re-authenticate with oauth services ``` diff --git a/docs/mctl_list.md b/docs/mctl_list.md index fca000ef..126d4d8c 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_DIR/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..2c024545 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_DIR/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..86a330b9 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_DIR/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..7b81fabd 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_DIR/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..36d83771 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_DIR/mctl/config.yml) --reauth re-authenticate with oauth services ```