Skip to content

Commit 3ea89f9

Browse files
committed
refactor(config): cleaned up documentation
1 parent 0092bc2 commit 3ea89f9

15 files changed

+35
-30
lines changed

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func Execute() {
3737

3838
func init() {
3939
cobra.OnInitialize(initConfig)
40-
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", fmt.Sprintf("config file (default is %v)", config.GetConfigDir()))
40+
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", fmt.Sprintf("config file (default is [$HOME/%%USERPROFILE%%]/%v)", config.DefaultConfigDir()))
4141
// Instead of profiles for now, I recommend just passing in different config files.
4242

4343
}

docs/toolsium.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ These tools can include default filters, easy access to start a session on an ec
1212
### Options
1313

1414
```
15-
--config string config file (default is $HOME/.toolsium.json)
15+
--config string config file (default is [$HOME/%USERPROFILE%]/.toolsium)
1616
-h, --help help for toolsium
1717
```
1818

@@ -24,4 +24,4 @@ These tools can include default filters, easy access to start a session on an ec
2424
* [toolsium manage](toolsium_manage.md) - A brief description of your command
2525
* [toolsium mfa](toolsium_mfa.md) - A brief description of your command
2626

27-
###### Auto generated by spf13/cobra on 27-Aug-2022
27+
###### Auto generated by spf13/cobra on 28-Aug-2022

docs/toolsium_completion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ See each sub-command's help for details on how to use the generated script.
1717
### Options inherited from parent commands
1818

1919
```
20-
--config string config file (default is $HOME/.toolsium.json)
20+
--config string config file (default is [$HOME/%USERPROFILE%]/.toolsium)
2121
```
2222

2323
### SEE ALSO
@@ -28,4 +28,4 @@ See each sub-command's help for details on how to use the generated script.
2828
* [toolsium completion powershell](toolsium_completion_powershell.md) - Generate the autocompletion script for powershell
2929
* [toolsium completion zsh](toolsium_completion_zsh.md) - Generate the autocompletion script for zsh
3030

31-
###### Auto generated by spf13/cobra on 27-Aug-2022
31+
###### Auto generated by spf13/cobra on 28-Aug-2022

docs/toolsium_completion_bash.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ toolsium completion bash
4040
### Options inherited from parent commands
4141

4242
```
43-
--config string config file (default is $HOME/.toolsium.json)
43+
--config string config file (default is [$HOME/%USERPROFILE%]/.toolsium)
4444
```
4545

4646
### SEE ALSO
4747

4848
* [toolsium completion](toolsium_completion.md) - Generate the autocompletion script for the specified shell
4949

50-
###### Auto generated by spf13/cobra on 27-Aug-2022
50+
###### Auto generated by spf13/cobra on 28-Aug-2022

docs/toolsium_completion_fish.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ toolsium completion fish [flags]
3131
### Options inherited from parent commands
3232

3333
```
34-
--config string config file (default is $HOME/.toolsium.json)
34+
--config string config file (default is [$HOME/%USERPROFILE%]/.toolsium)
3535
```
3636

3737
### SEE ALSO
3838

3939
* [toolsium completion](toolsium_completion.md) - Generate the autocompletion script for the specified shell
4040

41-
###### Auto generated by spf13/cobra on 27-Aug-2022
41+
###### Auto generated by spf13/cobra on 28-Aug-2022

docs/toolsium_completion_powershell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ toolsium completion powershell [flags]
2828
### Options inherited from parent commands
2929

3030
```
31-
--config string config file (default is $HOME/.toolsium.json)
31+
--config string config file (default is [$HOME/%USERPROFILE%]/.toolsium)
3232
```
3333

3434
### SEE ALSO
3535

3636
* [toolsium completion](toolsium_completion.md) - Generate the autocompletion script for the specified shell
3737

38-
###### Auto generated by spf13/cobra on 27-Aug-2022
38+
###### Auto generated by spf13/cobra on 28-Aug-2022

docs/toolsium_completion_zsh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ toolsium completion zsh [flags]
4242
### Options inherited from parent commands
4343

4444
```
45-
--config string config file (default is $HOME/.toolsium.json)
45+
--config string config file (default is [$HOME/%USERPROFILE%]/.toolsium)
4646
```
4747

4848
### SEE ALSO
4949

5050
* [toolsium completion](toolsium_completion.md) - Generate the autocompletion script for the specified shell
5151

52-
###### Auto generated by spf13/cobra on 27-Aug-2022
52+
###### Auto generated by spf13/cobra on 28-Aug-2022

docs/toolsium_docs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ toolsium docs [flags]
1515
### Options inherited from parent commands
1616

1717
```
18-
--config string config file (default is $HOME/.toolsium.json)
18+
--config string config file (default is [$HOME/%USERPROFILE%]/.toolsium)
1919
```
2020

2121
### SEE ALSO
2222

2323
* [toolsium](toolsium.md) - A handy set of tools for developers
2424

25-
###### Auto generated by spf13/cobra on 27-Aug-2022
25+
###### Auto generated by spf13/cobra on 28-Aug-2022

docs/toolsium_init.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ toolsium init [flags]
1717
### Options inherited from parent commands
1818

1919
```
20-
--config string config file (default is $HOME/.toolsium.json)
20+
--config string config file (default is [$HOME/%USERPROFILE%]/.toolsium)
2121
```
2222

2323
### SEE ALSO
2424

2525
* [toolsium](toolsium.md) - A handy set of tools for developers
2626

27-
###### Auto generated by spf13/cobra on 27-Aug-2022
27+
###### Auto generated by spf13/cobra on 28-Aug-2022

docs/toolsium_manage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ toolsium manage [flags]
2424
### Options inherited from parent commands
2525

2626
```
27-
--config string config file (default is $HOME/.toolsium.json)
27+
--config string config file (default is [$HOME/%USERPROFILE%]/.toolsium)
2828
```
2929

3030
### SEE ALSO
3131

3232
* [toolsium](toolsium.md) - A handy set of tools for developers
3333
* [toolsium manage papi](toolsium_manage_papi.md) - A brief description of your command
3434

35-
###### Auto generated by spf13/cobra on 27-Aug-2022
35+
###### Auto generated by spf13/cobra on 28-Aug-2022

0 commit comments

Comments
 (0)