@@ -57,6 +57,7 @@ var execCmd = &cobra.Command{
5757 s .Workspace , _ = cmd .Flags ().GetString ("workspace" )
5858 s .IacconsoleApiUrl = IACCONSOLE_API_URL
5959 s .DimensionsFlags , _ = cmd .Flags ().GetStringSlice ("dimension" )
60+ s .ReportOutput , _ = cmd .Flags ().GetBool ("report-output" )
6061 s .UnitPath , _ = filepath .Abs (s .GetStringFromViperByOrgOrDefault ("units_path" ) + "/" + s .OrgName + "/" + s .UnitName )
6162 if s .GetStringFromViperByOrgOrDefault ("shared_modules_path" ) != "" {
6263 s .SharedModulesPath , _ = filepath .Abs (s .GetStringFromViperByOrgOrDefault ("shared_modules_path" ))
@@ -156,6 +157,7 @@ func init() {
156157 execCmd .Flags ().StringP ("org" , "o" , "" , "specify org" )
157158 execCmd .Flags ().StringP ("workspace" , "w" , "master" , "specify workspace for IaCConsole DB" )
158159 execCmd .Flags ().BoolP ("clean" , "c" , false , "remove tmp after execution" )
160+ execCmd .Flags ().Bool ("report-output" , false , "report terraform output to server" )
159161 //viper.BindPFlag("org", execCmd.Flags().Lookup("org"))
160162 if err := execCmd .MarkFlagRequired ("unit" ); err != nil {
161163 log .Fatalf ("Error marking flag 'unit' as required: %v" , err )
0 commit comments