Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
topaz configure --stdout
Browse files Browse the repository at this point in the history
gertd committed Oct 28, 2023
1 parent 291dd03 commit 2bdb3be
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pkg/cli/cmd/configure.go
Original file line number Diff line number Diff line change
@@ -60,12 +60,15 @@ func (cmd ConfigureCmd) Run(c *cc.CommonCtx) error {
EdgeDirectory: cmd.EdgeDirectory,
SeedMetadata: cmd.SeedMetadata,
}
if params.LocalPolicyImage != "" {
color.Green("using local policy image: %s", params.LocalPolicyImage)
return WriteConfig(w, localImageTemplate, &params)
}

color.Green("policy name: %s", params.PolicyName)
if !cmd.Stdout {
if params.LocalPolicyImage != "" {
color.Green("using local policy image: %s", params.LocalPolicyImage)
return WriteConfig(w, localImageTemplate, &params)
}

color.Green("policy name: %s", params.PolicyName)
}

return WriteConfig(w, configTemplate, &params)
}

0 comments on commit 2bdb3be

Please sign in to comment.