aboutsummaryrefslogtreecommitdiff
path: root/cmd/soong_ui/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/soong_ui/main.go')
-rw-r--r--cmd/soong_ui/main.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/cmd/soong_ui/main.go b/cmd/soong_ui/main.go
index 584cc042d..f9e223a1e 100644
--- a/cmd/soong_ui/main.go
+++ b/cmd/soong_ui/main.go
@@ -74,7 +74,7 @@ var commands = []command{
description: "print the value of the legacy make variable VAR to stdout",
simpleOutput: true,
logsPrefix: "dumpvars-",
- config: dumpVarConfig,
+ config: build.NewDumpVarConfig,
stdio: customStdio,
run: dumpVar,
}, {
@@ -82,7 +82,7 @@ var commands = []command{
description: "dump the values of one or more legacy make variables, in shell syntax",
simpleOutput: true,
logsPrefix: "dumpvars-",
- config: dumpVarConfig,
+ config: build.NewDumpVarConfig,
stdio: customStdio,
run: dumpVars,
}, {
@@ -442,11 +442,6 @@ func customStdio() terminal.StdioInterface {
return terminal.NewCustomStdio(os.Stdin, os.Stderr, os.Stderr)
}
-// dumpVarConfig does not require any arguments to be parsed by the NewConfig.
-func dumpVarConfig(ctx build.Context, args ...string) build.Config {
- return build.NewConfig(ctx)
-}
-
func buildActionConfig(ctx build.Context, args ...string) build.Config {
flags := flag.NewFlagSet("build-mode", flag.ContinueOnError)
flags.SetOutput(ctx.Writer)