From ebe7dfdaf35db7228403297b019b80acca3ee396 Mon Sep 17 00:00:00 2001 From: Casey Lee Date: Thu, 20 Feb 2020 11:57:18 -0500 Subject: [PATCH] update for platforms Signed-off-by: Casey Lee --- cmd/input.go | 2 +- cmd/root.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/input.go b/cmd/input.go index cfb91346..63a64adc 100644 --- a/cmd/input.go +++ b/cmd/input.go @@ -15,7 +15,7 @@ type Input struct { platforms []string dryrun bool forcePull bool - logOutput bool + noOutput bool } func (i *Input) resolve(path string) string { diff --git a/cmd/root.go b/cmd/root.go index 484cb393..a22b10f7 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -38,7 +38,7 @@ func Execute(ctx context.Context, version string) { rootCmd.PersistentFlags().StringVarP(&input.workflowsPath, "workflows", "W", "./.github/workflows/", "path to workflow files") rootCmd.PersistentFlags().StringVarP(&input.workdir, "directory", "C", ".", "working directory") rootCmd.PersistentFlags().BoolP("verbose", "v", false, "verbose output") - rootCmd.PersistentFlags().BoolVarP(&input.logOutput, "output", "o", false, "log output from steps") + rootCmd.PersistentFlags().BoolVarP(&input.noOutput, "quiet", "q", false, "disable logging of output from steps") rootCmd.PersistentFlags().BoolVarP(&input.dryrun, "dryrun", "n", false, "dryrun mode") if err := rootCmd.Execute(); err != nil { os.Exit(1) @@ -97,7 +97,7 @@ func newRunCommand(ctx context.Context, input *Input) func(*cobra.Command, []str ForcePull: input.forcePull, ReuseContainers: input.reuseContainers, Workdir: input.Workdir(), - LogOutput: input.logOutput, + LogOutput: !input.noOutput, Secrets: newSecrets(input.secrets), Platforms: input.newPlatforms(), }