Skip to content

Commit

Permalink
Change default config path in usage string and regenerate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmlb committed Aug 14, 2023
1 parent 79f2eca commit 00270e5
Show file tree
Hide file tree
Showing 30 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)")
RootCmd.PersistentFlags().BoolVar(&reAuth, "reauth", false, "re-authenticate with oauth services")
}
2 changes: 1 addition & 1 deletion docs/mctl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
-h, --help help for mctl
--reauth re-authenticate with oauth services
```
Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_completion_bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_completion_fish.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_completion_powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_completion_zsh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_create_firmware-set.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_create_firmware.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_delete_condition.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_delete_firmware-set.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_edit.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_edit_firmware-set.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_gendocs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_get_bios-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
-o, --output string {json|text} (default "json")
--reauth re-authenticate with oauth services
```
Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_get_component.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
-o, --output string {json|text} (default "json")
--reauth re-authenticate with oauth services
```
Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_get_condition.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
-o, --output string {json|text} (default "json")
--reauth re-authenticate with oauth services
```
Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_get_firmware-set.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
-o, --output string {json|text} (default "json")
--reauth re-authenticate with oauth services
```
Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_get_firmware.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
-o, --output string {json|text} (default "json")
--reauth re-authenticate with oauth services
```
Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_install_firmware-set.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_install_status.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mctl install status --server | -s <server uuid> [flags]
### Options inherited from parent commands

```
--config string config file (default is $HOME/.mctl.yml)
--config string config file (default is $XDG_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_list_condition.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--output-json Output listing as JSON
--reauth re-authenticate with oauth services
```
Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_list_firmware-set.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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_CACHE_DIR/mctl/config.yml)
--output-json Output listing as JSON
--reauth re-authenticate with oauth services
```
Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_list_firmware.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--output-json Output listing as JSON
--reauth re-authenticate with oauth services
```
Expand Down
2 changes: 1 addition & 1 deletion docs/mctl_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_CACHE_DIR/mctl/config.yml)
--reauth re-authenticate with oauth services
```

Expand Down

0 comments on commit 00270e5

Please sign in to comment.