Skip to content

Commit ab99fd9

Browse files
committed
Change default config path in usage string and regenerate docs
1 parent 3e21080 commit ab99fd9

30 files changed

+30
-30
lines changed

cmd/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ func Execute() {
4545
}
4646

4747
func init() {
48-
RootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.mctl.yml)")
48+
RootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $XDG_CACHE_DIR/mctl/config.yml)")
4949
RootCmd.PersistentFlags().BoolVar(&reAuth, "reauth", false, "re-authenticate with oauth services")
5050
}

docs/mctl.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mctl is a CLI utility to interact with metal toolbox services
77
### Options
88

99
```
10-
--config string config file (default is $HOME/.mctl.yml)
10+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
1111
-h, --help help for mctl
1212
--reauth re-authenticate with oauth services
1313
```

docs/mctl_completion.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ See each sub-command's help for details on how to use the generated script.
1919
### Options inherited from parent commands
2020

2121
```
22-
--config string config file (default is $HOME/.mctl.yml)
22+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2323
--reauth re-authenticate with oauth services
2424
```
2525

docs/mctl_completion_bash.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mctl completion bash
4242
### Options inherited from parent commands
4343

4444
```
45-
--config string config file (default is $HOME/.mctl.yml)
45+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
4646
--reauth re-authenticate with oauth services
4747
```
4848

docs/mctl_completion_fish.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ mctl completion fish [flags]
3333
### Options inherited from parent commands
3434

3535
```
36-
--config string config file (default is $HOME/.mctl.yml)
36+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
3737
--reauth re-authenticate with oauth services
3838
```
3939

docs/mctl_completion_powershell.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mctl completion powershell [flags]
3030
### Options inherited from parent commands
3131

3232
```
33-
--config string config file (default is $HOME/.mctl.yml)
33+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
3434
--reauth re-authenticate with oauth services
3535
```
3636

docs/mctl_completion_zsh.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ mctl completion zsh [flags]
4444
### Options inherited from parent commands
4545

4646
```
47-
--config string config file (default is $HOME/.mctl.yml)
47+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
4848
--reauth re-authenticate with oauth services
4949
```
5050

docs/mctl_create.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mctl create [flags]
1717
### Options inherited from parent commands
1818

1919
```
20-
--config string config file (default is $HOME/.mctl.yml)
20+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2121
--reauth re-authenticate with oauth services
2222
```
2323

docs/mctl_create_firmware-set.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mctl create firmware-set [flags]
2020
### Options inherited from parent commands
2121

2222
```
23-
--config string config file (default is $HOME/.mctl.yml)
23+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2424
--reauth re-authenticate with oauth services
2525
```
2626

docs/mctl_create_firmware.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mctl create firmware [flags]
1818
### Options inherited from parent commands
1919

2020
```
21-
--config string config file (default is $HOME/.mctl.yml)
21+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2222
--reauth re-authenticate with oauth services
2323
```
2424

docs/mctl_delete.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mctl delete [flags]
1717
### Options inherited from parent commands
1818

1919
```
20-
--config string config file (default is $HOME/.mctl.yml)
20+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2121
--reauth re-authenticate with oauth services
2222
```
2323

docs/mctl_delete_condition.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mctl delete condition [flags]
1919
### Options inherited from parent commands
2020

2121
```
22-
--config string config file (default is $HOME/.mctl.yml)
22+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2323
--reauth re-authenticate with oauth services
2424
```
2525

docs/mctl_delete_firmware-set.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mctl delete firmware-set [flags]
1818
### Options inherited from parent commands
1919

2020
```
21-
--config string config file (default is $HOME/.mctl.yml)
21+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2222
--reauth re-authenticate with oauth services
2323
```
2424

docs/mctl_edit.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mctl edit [flags]
1717
### Options inherited from parent commands
1818

1919
```
20-
--config string config file (default is $HOME/.mctl.yml)
20+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2121
--reauth re-authenticate with oauth services
2222
```
2323

docs/mctl_edit_firmware-set.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mctl edit firmware-set [flags]
2121
### Options inherited from parent commands
2222

2323
```
24-
--config string config file (default is $HOME/.mctl.yml)
24+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2525
--reauth re-authenticate with oauth services
2626
```
2727

docs/mctl_gendocs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mctl gendocs [flags]
1717
### Options inherited from parent commands
1818

1919
```
20-
--config string config file (default is $HOME/.mctl.yml)
20+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2121
--reauth re-authenticate with oauth services
2222
```
2323

docs/mctl_get.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mctl get [flags]
1818
### Options inherited from parent commands
1919

2020
```
21-
--config string config file (default is $HOME/.mctl.yml)
21+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2222
--reauth re-authenticate with oauth services
2323
```
2424

docs/mctl_get_bios-config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mctl get bios-config [flags]
1818
### Options inherited from parent commands
1919

2020
```
21-
--config string config file (default is $HOME/.mctl.yml)
21+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2222
-o, --output string {json|text} (default "json")
2323
--reauth re-authenticate with oauth services
2424
```

docs/mctl_get_component.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mctl get component [flags]
1919
### Options inherited from parent commands
2020

2121
```
22-
--config string config file (default is $HOME/.mctl.yml)
22+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2323
-o, --output string {json|text} (default "json")
2424
--reauth re-authenticate with oauth services
2525
```

docs/mctl_get_condition.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mctl get condition [flags]
1919
### Options inherited from parent commands
2020

2121
```
22-
--config string config file (default is $HOME/.mctl.yml)
22+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2323
-o, --output string {json|text} (default "json")
2424
--reauth re-authenticate with oauth services
2525
```

docs/mctl_get_firmware-set.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mctl get firmware-set [flags]
1919
### Options inherited from parent commands
2020

2121
```
22-
--config string config file (default is $HOME/.mctl.yml)
22+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2323
-o, --output string {json|text} (default "json")
2424
--reauth re-authenticate with oauth services
2525
```

docs/mctl_get_firmware.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mctl get firmware [flags]
1818
### Options inherited from parent commands
1919

2020
```
21-
--config string config file (default is $HOME/.mctl.yml)
21+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2222
-o, --output string {json|text} (default "json")
2323
--reauth re-authenticate with oauth services
2424
```

docs/mctl_install.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mctl install [flags]
1717
### Options inherited from parent commands
1818

1919
```
20-
--config string config file (default is $HOME/.mctl.yml)
20+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2121
--reauth re-authenticate with oauth services
2222
```
2323

docs/mctl_install_firmware-set.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mctl install firmware-set [flags]
2121
### Options inherited from parent commands
2222

2323
```
24-
--config string config file (default is $HOME/.mctl.yml)
24+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2525
--reauth re-authenticate with oauth services
2626
```
2727

docs/mctl_install_status.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mctl install status --server | -s <server uuid> [flags]
1818
### Options inherited from parent commands
1919

2020
```
21-
--config string config file (default is $HOME/.mctl.yml)
21+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2222
--reauth re-authenticate with oauth services
2323
```
2424

docs/mctl_list.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mctl list [flags]
1818
### Options inherited from parent commands
1919

2020
```
21-
--config string config file (default is $HOME/.mctl.yml)
21+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2222
--reauth re-authenticate with oauth services
2323
```
2424

docs/mctl_list_condition.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mctl list condition [flags]
1919
### Options inherited from parent commands
2020

2121
```
22-
--config string config file (default is $HOME/.mctl.yml)
22+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2323
--output-json Output listing as JSON
2424
--reauth re-authenticate with oauth services
2525
```

docs/mctl_list_firmware-set.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mctl list firmware-set [flags]
1919
### Options inherited from parent commands
2020

2121
```
22-
--config string config file (default is $HOME/.mctl.yml)
22+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2323
--output-json Output listing as JSON
2424
--reauth re-authenticate with oauth services
2525
```

docs/mctl_list_firmware.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mctl list firmware [flags]
1717
### Options inherited from parent commands
1818

1919
```
20-
--config string config file (default is $HOME/.mctl.yml)
20+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2121
--output-json Output listing as JSON
2222
--reauth re-authenticate with oauth services
2323
```

docs/mctl_version.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mctl version [flags]
1717
### Options inherited from parent commands
1818

1919
```
20-
--config string config file (default is $HOME/.mctl.yml)
20+
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
2121
--reauth re-authenticate with oauth services
2222
```
2323

0 commit comments

Comments
 (0)