Skip to content
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 hidden stdin option #94

Merged
merged 4 commits into from
May 10, 2019
Merged

Add hidden stdin option #94

merged 4 commits into from
May 10, 2019

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented May 10, 2019

Add --stdin boolean option for enable or disable reading Markdown from stdin (true by default). By setting --stdin=false or --no-stdin, Marp CLI won't read content from stdin. It allows to avoid hang up while reading stdin in several environments.

--stdin is a hidden option because reading stdin is an expected behavior for most users using CLI. User can see help with --show-hidden if necessary. (It's a built-in option of yargs)

$ marp --help --show-hidden
...
Basic Options:
  ...
  --stdin            Read Markdown from stdin     [boolean] [default: true]

--no-stdin helps to resolve the problem for Now deploy environment and Marp for VS Code. Close #93.

ToDo

  • Add tests

@yhatt yhatt merged commit 53b5fe1 into master May 10, 2019
@yhatt yhatt deleted the hidden-stdin-option branch May 10, 2019 10:28
@yhatt yhatt mentioned this pull request Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hung up in some environments while getting from stdin
1 participant