Fixes config-file location in README.md (#171)

* Fixes config-file location in README.md

* Corrected config file location in cobra help
This commit is contained in:
Akshay Chhajed 2019-03-16 20:19:28 +05:30 committed by Alex Goodman
parent a1e0f08408
commit 34439f2b9b
2 changed files with 2 additions and 2 deletions

View file

@ -249,5 +249,5 @@ layer:
dive will search for configs in the following locations:
- `$XDG_CONFIG_HOME/dive/*.yaml`
- `$XDG_CONFIG_DIRS/dive/*.yaml`
- `~/.config/dive.yaml`
- `~/.config/dive/*.yaml`
- `~/.dive.yaml`

View file

@ -42,7 +42,7 @@ func init() {
cobra.OnInitialize(initConfig)
cobra.OnInitialize(initLogging)
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.dive.yaml, ~/.config/dive.yaml, or $XDG_CONFIG_HOME/dive.yaml)")
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.dive.yaml, ~/.config/dive/*.yaml, or $XDG_CONFIG_HOME/dive.yaml)")
rootCmd.PersistentFlags().BoolP("version", "v", false, "display version number")
rootCmd.Flags().StringVarP(&exportFile, "json", "j", "", "Skip the interactive TUI and write the layer analysis statistics to a given file.")