-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Clap #5152
Merged
Merged
Clap #5152
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
38f81e0
Port bench and build to clap
matklad 178b16d
Temporarly ignore some tests
matklad 0ac7251
Move check to clap
matklad 51f1c4a
Move clean to clap
matklad 84a89eb
Move doc to clap
matklad 5452763
Move fetch to clap
matklad 287d352
Move generate-lockfile to clap
matklad 562af31
Move git-checkout to clap
matklad 4131bdb
Move init to clap
matklad 8518be6
Specify frozen & locked for all commands simultaneously
matklad 57789d7
Move install to clap
matklad 3c86dc1
Move locate-project to clap
matklad de90d8d
Move login to clap
matklad 6022d02
Move metadata to clap
matklad 062a6e7
Move new to clap
matklad 01d908a
Move owner to clap
matklad 4e8d753
Move package to clap
matklad 5c81353
Move pkgid to clap
matklad d3494e7
Move publish to clap
matklad 5870d5b
Move read-manifest to clap
matklad 7bf1619
Move run to clap
matklad 8e8e924
Move rustc to clap
matklad ecb5b15
Move rustdoc to clap
matklad ce249e3
Don't copy-paste package argument
matklad cf06a18
Don't copy-paste index argument
matklad 444101a
Move search to clap
matklad ed20c12
Move test to clap
matklad 1376f40
Move uninstall to clap
matklad 666e232
Move the rest of the commands to clap
matklad c327245
Drop old commands
matklad 31ea0d9
Fix some trivially fixable tests
matklad 4d3ca92
Use exit code 1 for command line parsing errors
matklad a8aea47
Restore global initialization
matklad 8b4f06c
Cleanup
matklad 81ce3e1
Support external subcommands
matklad 35365a6
Support built-in aliases
matklad 63d4e5c
Fix verify-project command
matklad af88c9f
Disable `cargo help -h`
matklad 89c6d77
Unignore test which now passes
matklad 6783272
Fix more tests by updating error messages
matklad 93875b8
Support aliases
matklad 0470d77
Support list subcommand
matklad cc3ce00
Fix `--explain`
matklad 7a3dd73
Remove dead code
matklad 9810e49
Fix typo
matklad 901065f
Fix after rebase
matklad 285fbdf
Remove docopt dependency
matklad f214564
Remove dead code
matklad 16bde4e
Unwind stack for cli errors
matklad 67968e6
Validate that `jobs` argument is a number
matklad bb643cc
Make command-line arguments owned
matklad 207a51f
Introduce command_prelude module
matklad 7acd343
Move command_prelude to a separate file
matklad 66bb9dc
Reorganize subcommands as a separate submodule
matklad 8b80440
Rename CommonArgs -> AppExt
matklad 7dcc030
Inline `config_from_args`
matklad 2c9b6aa
Introduce ArgMatchesExt trait
matklad 8f1881e
Move some arg parsing to ArgMatchesExt
matklad d8d1f13
Make `target` option owned in various configs
matklad 90b4a04
Move `compile_options` to `ArgMatchesExt`
matklad 50284b1
Move `new_options` to `ArgMatchesExt`
matklad 4fac2fb
Move `index` & `registry` to `ArgMatchesExt`
matklad c180e17
Tweak the help message
matklad 823f1ff
Validate the limit argument
matklad a64df78
Relax tests for windows
matklad e68c682
Cleanups
matklad 74f4089
Fix spelling of quiet
matklad f2f062c
Use `avoid_dev_deps` for all commands
matklad 6b9c063
File per command
matklad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Validate that
jobs
argument is a number
- Loading branch information
commit 67968e6b0e42acb0ed38bc26f6308d275b671c12
There are no files selected for viewing
This file contains 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
This file contains 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
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.
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.
Obviously, this needs to be fixed properly :) Docopt gives us
Vec<String>
, andclap
Iterator<Item=&str>
, and we unfortunately use&'a [String]
internally....