mirror of
https://github.com/Warky-Devs/vecna.git
synced 2026-05-05 01:26:58 +00:00
feat(docker): add configurable path for vecna.json
* set default config path to /config * update docker-compose example for config usage * modify config resolution to include /config directory
This commit is contained in:
@@ -29,7 +29,7 @@ var rootCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default: ./vecna.yaml)")
|
||||
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", os.Getenv("VECNA_CONFIG"), "config file path (env: VECNA_CONFIG; default search: /config, $HOME, ./)")
|
||||
rootCmd.PersistentFlags().StringVar(&logLevel, "log-level", "info", "log level: info | debug")
|
||||
rootCmd.AddCommand(convertCmd)
|
||||
rootCmd.AddCommand(serveCmd)
|
||||
|
||||
Reference in New Issue
Block a user