Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
roca committed Sep 22, 2023
1 parent 723f998 commit a8bd8fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var rootCmd = &cobra.Command{

func Execute() {
rootCmd.PersistentFlags().StringVarP(&config, "config", "", "backup.yaml", "config YAML file of milvus")
rootCmd.PersistentFlags().StringSliceVar(&yamlOverrides, "set", []string{}, "Oveeride yaml values using a capitalized snake case format (--set MILVUS_USER=Marco)")
rootCmd.PersistentFlags().StringSliceVar(&yamlOverrides, "set", []string{}, "Override yaml values using a capitalized snake case format (--set MILVUS_USER=Marco)")
rootCmd.CompletionOptions.DisableDefaultCmd = true
rootCmd.Execute()
}
Expand All @@ -37,6 +37,7 @@ func SetVersionInfo(version, commit, date string) {
rootCmd.Version = fmt.Sprintf("%s (Built on %s from Git SHA %s)", version, date, commit)
}

// Set environment variables from yamlOverrides
func setEnvs(envs []string) {
for _, e := range envs {
env := strings.Split(e, "=")
Expand Down

0 comments on commit a8bd8fd

Please sign in to comment.