Skip to content

Commit 3231d67

Browse files
committed
feat: allow configure--progress default to be set in config.yaml
1 parent 62d55b2 commit 3231d67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/aspect/configure/configure.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ Run 'aspect help directives' or see https://github.com/aspect-build/aspect-cli-l
116116

117117
viper.SetDefault("configure.index", "all")
118118
viper.SetDefault("configure.recurse", true)
119+
viper.SetDefault("configure.progress", false)
119120

120121
// TODO: restrict to only valid values (see https://github.com/spf13/pflag/issues/236)
121122
cmd.Flags().String("mode", "fix", "Method for emitting merged BUILD files.\n\tfix: write generated and merged files to disk\n\tprint: print files to stdout\n\tdiff: print a unified diff")
@@ -124,7 +125,7 @@ Run 'aspect help directives' or see https://github.com/aspect-build/aspect-cli-l
124125
cmd.Flags().StringSlice("exclude", []string{}, "Files to exclude from BUILD generation")
125126
cmd.Flags().Bool("watchman", false, "Use the EXPERIMENTAL watchman daemon to watch for changes across 'configure' invocations")
126127
cmd.Flags().Bool("watch", false, "Use the EXPERIMENTAL watch mode to watch for changes in the workspace and automatically 'configure' when files change")
127-
cmd.Flags().Bool("progress", false, "Show progress throughout 'configure' invocation")
128+
cmd.Flags().Bool("progress", viper.GetBool("configure.progress"), "Show progress throughout 'configure' invocation")
128129

129130
return cmd
130131
}

0 commit comments

Comments
 (0)