From fc9ccc344ece710c49bdf32e81dc35633c24bf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Kutryj?= Date: Tue, 1 Aug 2023 22:04:17 +0200 Subject: [PATCH] fix: add missing flags from compile cmd (#63) --- cmd/compile.go | 2 ++ cmd/root.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/compile.go b/cmd/compile.go index 78036df..1032120 100644 --- a/cmd/compile.go +++ b/cmd/compile.go @@ -107,5 +107,7 @@ var compileCmd = &cobra.Command{ } func init() { + compileCmd.Flags().Int32P("trim-output-to", "s", 0, "trim stdout to N characters, defaults to 0(unlimited)") + compileCmd.Flags().BoolP("omit-output-for-passed", "o", false, "omit stdout if test passed, defaults to false") rootCmd.AddCommand(compileCmd) } diff --git a/cmd/root.go b/cmd/root.go index f92b41c..022f606 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -30,7 +30,7 @@ import ( var cfgFile string -var versionString = "0.6.5" +var versionString = "0.6.6" // rootCmd represents the base command when called without any subcommands var rootCmd = &cobra.Command{