mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-17 13:11:48 +00:00
Merge pull request #1219 from frankgu968/main
fix: install command flags logic bug
This commit is contained in:
commit
fa46f05423
1 changed files with 3 additions and 3 deletions
|
|
@ -176,15 +176,15 @@ func installCmdRun(cmd *cobra.Command, args []string) error {
|
||||||
return fmt.Errorf("install failed: %w", err)
|
return fmt.Errorf("install failed: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if rootArgs.verbose {
|
if installArgs.export {
|
||||||
fmt.Print(manifest.Content)
|
|
||||||
} else if installArgs.export {
|
|
||||||
fmt.Println("---")
|
fmt.Println("---")
|
||||||
fmt.Println("# Flux version:", installArgs.version)
|
fmt.Println("# Flux version:", installArgs.version)
|
||||||
fmt.Println("# Components:", strings.Join(components, ","))
|
fmt.Println("# Components:", strings.Join(components, ","))
|
||||||
fmt.Print(manifest.Content)
|
fmt.Print(manifest.Content)
|
||||||
fmt.Println("---")
|
fmt.Println("---")
|
||||||
return nil
|
return nil
|
||||||
|
} else if rootArgs.verbose {
|
||||||
|
fmt.Print(manifest.Content)
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Successf("manifests build completed")
|
logger.Successf("manifests build completed")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue