From 34439f2b9b2a458249aeb8cd4eea61c75c8c16ce Mon Sep 17 00:00:00 2001 From: Akshay Chhajed Date: Sat, 16 Mar 2019 20:19:28 +0530 Subject: [PATCH] Fixes config-file location in README.md (#171) * Fixes config-file location in README.md * Corrected config file location in cobra help --- README.md | 2 +- cmd/root.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3445229..55df4f7 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/cmd/root.go b/cmd/root.go index b816a16..da8a280 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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.")