Repository navigation
Conversation
Add JSON option
rask-cli Enhance document listing to support JSON output format
Add -n option to task list command
clap does not allow an argument to be both global and required. Running any subcommand in a debug build panicked with "Global arguments cannot be required". Set `required = false` on `api_key` so it remains a global argument.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
※ このブランチは #171 を含んでいるため,#171 を先にマージしてから本 PR をマージすること.
cli の README が全体の見通しが悪く,章構成も rask の README と大きく異なっていた.また,引数定義(
args.rs)と内容がずれやすいという問題もあった.そこで,コマンドの詳細を別ファイルに分割し,README の章構成を修正した.
具体的には,
args.rsの各サブコマンドとオプションにヘルプ文を追加し,docs/CommandLineHelp.mdをclap-markdownでこのヘルプ文から生成するようにした.これにより,生成結果と既存ファイルの一致はcargo testで検査し,ずれていればテストが失敗するようになった(再生成はUPDATE_DOCS=1 cargo test).あわせて,--urlの説明がapi_keyと同じ文になっていた誤りも修正した.README は What is rask-cli?/Setup / Usage / Development の構成に整理し,コマンドの詳細は
docs/CommandLineHelp.mdへのリンクに置き換えた.また,英語版のREADME.en.mdも追加した.