-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #136 This PR upgrades the `clap` dependency to `4.0`. I can also upgrade the other dependencies in the same PR itself, since they only involve modifications to the `Cargo.toml` and `Cargo.lock` files, `clippy` lints and tests pass without any code modifications. ### Additional tasks - [ ] Documentation for changes provided/changed - [ ] Tests added - [ ] Updated CHANGELOG.md --- PS: I'm unsure if this requires a changelog entry, I can add one if required.
- Loading branch information
1 parent
4796cf0
commit 5d1a6b6
Showing
4 changed files
with
18 additions
and
54 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,16 @@ use std::path::PathBuf; | |
use clap::{Parser, Subcommand}; | ||
|
||
#[derive(Parser, Debug)] | ||
#[clap(author="Dmitrii Kovanikov <[email protected]>", version, about="A CLI tool to manage other CLI tools", long_about = None)] | ||
#[command(author="Dmitrii Kovanikov <[email protected]>", version, about="A CLI tool to manage other CLI tools", long_about = None)] | ||
pub struct Cli { | ||
/// Sets a path to a configuration file (default: $HOME/.tool.toml) | ||
#[clap(short, long, value_name = "FILE")] | ||
#[arg(short, long, value_name = "FILE")] | ||
pub config: Option<PathBuf>, | ||
|
||
#[clap(short, long, value_name = "uri")] | ||
#[arg(short, long, value_name = "uri")] | ||
pub proxy: Option<String>, | ||
|
||
#[clap(subcommand)] | ||
#[command(subcommand)] | ||
pub command: Command, | ||
} | ||
|
||
|
@@ -24,7 +24,7 @@ pub enum Command { | |
/// Print a default .tool.toml configuration to std out | ||
DefaultConfig { | ||
/// Print the default config file location instead | ||
#[clap(long)] | ||
#[arg(long)] | ||
path: bool, | ||
}, | ||
|
||
|
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