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

[feature request] An option to get machine-readable output from zenn new:book #494

Open
kyoh86 opened this issue May 20, 2024 · 1 comment

Comments

@kyoh86
Copy link
Contributor

kyoh86 commented May 20, 2024

Like #63, now zenn new:book prints files that created with colors (by ANSI escape charactors) like below:

created: \e[32mecba19abfa3c41371a4a/config.yaml\e[39m
created: \e[32mecba19abfa3c41371a4a/example1.md\e[39m
created: \e[32mecba19abfa3c41371a4a/example2.md\e[39m

But I want an output which can be parsed easily.

e.g.

$ zenn new:book --machine-readable
books/ecba19abfa3c41371a4a/config.yaml
books/ecba19abfa3c41371a4a/example1.md
books/ecba19abfa3c41371a4a/example2.md

NOTE: Also a subcommand new:article has --machine-readable option.

@cm-wada-yusuke
Copy link
Member

ありがとうございます。bookの作成においても、パイプなど後続の出力で処理可能な形式になるようにオプションを検討してみます。

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

No branches or pull requests

2 participants