Skip to content

Commit

Permalink
feat: add -q/--quiet flags to suppress compiler log output
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota committed Jul 5, 2024
1 parent f51875b commit 6d7e69f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/tact
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ meowModule.then(
Flags
-c, --config CONFIG Specify path to config file (tact.config.json)
-p, --project ...names Build only the specified project name(s) from the config file
-q, --quiet Suppress compiler log output
--with-decompilation Full compilation followed by decompilation of produced binary code
--func Output intermediate FunC code and exit
--check Perform syntax and type checking, then exit
Expand Down Expand Up @@ -51,14 +52,12 @@ meowModule.then(
);
},
},
eval: {
shortFlag: "e",
type: "string",
},
projects: { shortFlag: "p", type: "string", isMultiple: true },
quiet: { shortFlag: "q", type: "boolean", default: false },
withDecompilation: { type: "boolean", default: false },
func: { type: "boolean", default: false },
check: { type: "boolean", default: false },
eval: { shortFlag: "e", type: "string" },
version: { shortFlag: "v", type: "boolean" },
help: { shortFlag: "h", type: "boolean" },
},
Expand Down Expand Up @@ -164,6 +163,7 @@ meowModule.then(
configPath: cli.flags.config,
projectNames: cli.flags.projects ?? [],
additionalCliOptions: { mode },
suppressLog: cli.flags.quiet
})
.then((response) => {
// https://nodejs.org/docs/v20.12.1/api/process.html#exit-codes
Expand Down

0 comments on commit 6d7e69f

Please sign in to comment.