-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for --silent to @xstate/cli #252
base: master
Are you sure you want to change the base?
Conversation
Adds support for running xstate-cli in silent mode. Still prints errors.
|
@@ -74,7 +74,9 @@ const writeToFiles = async (uriArray: string[]) => { | |||
filePath: uri, | |||
event, | |||
}); | |||
console.log(`${uri} - success`); | |||
if(!silent){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(!silent){ | |
if (!silent) { |
@@ -108,7 +111,7 @@ program | |||
if (path.endsWith(".typegen.ts")) { | |||
return; | |||
} | |||
tasks.push(writeToFiles([path])); | |||
tasks.push(writeToFiles([path], opts.silent)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be more scalable to just pass opts
in here? That way we can avoid multiple arguments in the future.
Adds support for running xstate-cli in silent mode. Still prints errors.