dependencies: Update clap to 3.0.5
This commit is contained in:
35
Cargo.lock
generated
35
Cargo.lock
generated
@@ -51,9 +51,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap"
|
name = "clap"
|
||||||
version = "3.0.0-beta.5"
|
version = "3.0.5"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "feff3878564edb93745d58cf63e17b63f24142506e7a20c87a5521ed7bfb1d63"
|
checksum = "f6f34b09b9ee8c7c7b400fe2f8df39cafc9538b03d6ba7f4ae13e4cb90bfbb7d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atty",
|
"atty",
|
||||||
"bitflags",
|
"bitflags",
|
||||||
@@ -64,16 +64,15 @@ dependencies = [
|
|||||||
"strsim",
|
"strsim",
|
||||||
"termcolor",
|
"termcolor",
|
||||||
"textwrap",
|
"textwrap",
|
||||||
"unicase",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap_derive"
|
name = "clap_derive"
|
||||||
version = "3.0.0-beta.5"
|
version = "3.0.5"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "8b15c6b4f786ffb6192ffe65a36855bc1fc2444bcd0945ae16748dcd6ed7d0d3"
|
checksum = "41a0645a430ec9136d2d701e54a95d557de12649a9dd7109ced3187e648ac824"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"heck",
|
"heck 0.4.0",
|
||||||
"proc-macro-error",
|
"proc-macro-error",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
@@ -231,6 +230,12 @@ dependencies = [
|
|||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "heck"
|
||||||
|
version = "0.4.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hermit-abi"
|
name = "hermit-abi"
|
||||||
version = "0.1.19"
|
version = "0.1.19"
|
||||||
@@ -419,9 +424,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "os_str_bytes"
|
name = "os_str_bytes"
|
||||||
version = "4.2.0"
|
version = "6.0.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "addaa943333a514159c80c97ff4a93306530d965d27e139188283cd13e06a799"
|
checksum = "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"memchr",
|
"memchr",
|
||||||
]
|
]
|
||||||
@@ -676,7 +681,7 @@ version = "0.22.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb"
|
checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"heck",
|
"heck 0.3.3",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
"syn",
|
"syn",
|
||||||
@@ -727,9 +732,6 @@ name = "textwrap"
|
|||||||
version = "0.14.2"
|
version = "0.14.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "0066c8d12af8b5acd21e00547c3797fde4e8677254a7ee429176ccebbe93dd80"
|
checksum = "0066c8d12af8b5acd21e00547c3797fde4e8677254a7ee429176ccebbe93dd80"
|
||||||
dependencies = [
|
|
||||||
"unicode-width",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tinyvec"
|
name = "tinyvec"
|
||||||
@@ -755,15 +757,6 @@ dependencies = [
|
|||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "unicase"
|
|
||||||
version = "2.6.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6"
|
|
||||||
dependencies = [
|
|
||||||
"version_check",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "unicode-bidi"
|
name = "unicode-bidi"
|
||||||
version = "0.3.7"
|
version = "0.3.7"
|
||||||
|
|||||||
@@ -50,7 +50,8 @@ version = "=0.13.25"
|
|||||||
version = "=2.1.0"
|
version = "=2.1.0"
|
||||||
|
|
||||||
[dependencies.clap]
|
[dependencies.clap]
|
||||||
version = "=3.0.0-beta.5"
|
version = "=3.0.5"
|
||||||
|
features = ["derive", "cargo"]
|
||||||
|
|
||||||
[dependencies.console]
|
[dependencies.console]
|
||||||
version = "=0.15.0"
|
version = "=0.15.0"
|
||||||
|
|||||||
@@ -10,9 +10,7 @@ import tomlkit
|
|||||||
|
|
||||||
INDEX_DIR = "crates.io-index"
|
INDEX_DIR = "crates.io-index"
|
||||||
|
|
||||||
AUTOUPDATE_DISABLED = [
|
AUTOUPDATE_DISABLED = []
|
||||||
"clap",
|
|
||||||
]
|
|
||||||
|
|
||||||
if os.path.exists(INDEX_DIR):
|
if os.path.exists(INDEX_DIR):
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
|
|||||||
@@ -7,10 +7,8 @@ use clap::{AppSettings, Parser};
|
|||||||
author = clap::crate_authors!("\n"),
|
author = clap::crate_authors!("\n"),
|
||||||
about = clap::crate_description!(),
|
about = clap::crate_description!(),
|
||||||
long_version = clap::crate_version!(),
|
long_version = clap::crate_version!(),
|
||||||
license = clap::crate_license!(),
|
|
||||||
setting = AppSettings::DeriveDisplayOrder,
|
setting = AppSettings::DeriveDisplayOrder,
|
||||||
setting = AppSettings::PropagateVersion,
|
setting = AppSettings::PropagateVersion,
|
||||||
setting = AppSettings::HelpRequired,
|
|
||||||
)]
|
)]
|
||||||
pub struct Opts {
|
pub struct Opts {
|
||||||
#[clap(subcommand)]
|
#[clap(subcommand)]
|
||||||
@@ -51,7 +49,7 @@ pub struct Sync {
|
|||||||
short,
|
short,
|
||||||
long,
|
long,
|
||||||
default_value = "./config.toml",
|
default_value = "./config.toml",
|
||||||
about = "Path to the configuration file"
|
help = "Path to the configuration file"
|
||||||
)]
|
)]
|
||||||
pub config: String,
|
pub config: String,
|
||||||
}
|
}
|
||||||
@@ -59,13 +57,13 @@ pub struct Sync {
|
|||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[clap()]
|
#[clap()]
|
||||||
pub struct OptionalConfig {
|
pub struct OptionalConfig {
|
||||||
#[clap(short, long, about = "Path to the configuration file")]
|
#[clap(short, long, help = "Path to the configuration file")]
|
||||||
pub config: Option<String>,
|
pub config: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
pub struct Find {
|
pub struct Find {
|
||||||
#[clap(about = "The path to search through")]
|
#[clap(help = "The path to search through")]
|
||||||
pub path: String,
|
pub path: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,23 +95,23 @@ pub enum WorktreeAction {
|
|||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
pub struct WorktreeAddArgs {
|
pub struct WorktreeAddArgs {
|
||||||
#[clap(about = "Name of the worktree")]
|
#[clap(help = "Name of the worktree")]
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
|
||||||
#[clap(short = 't', long = "track", about = "Remote branch to track")]
|
#[clap(short = 't', long = "track", help = "Remote branch to track")]
|
||||||
pub track: Option<String>,
|
pub track: Option<String>,
|
||||||
|
|
||||||
#[clap(long = "--no-track", about = "Disable tracking")]
|
#[clap(long = "--no-track", help = "Disable tracking")]
|
||||||
pub no_track: bool,
|
pub no_track: bool,
|
||||||
}
|
}
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
pub struct WorktreeDeleteArgs {
|
pub struct WorktreeDeleteArgs {
|
||||||
#[clap(about = "Name of the worktree")]
|
#[clap(help = "Name of the worktree")]
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
|
||||||
#[clap(
|
#[clap(
|
||||||
long = "force",
|
long = "force",
|
||||||
about = "Force deletion, even when there are uncommitted/unpushed changes"
|
help = "Force deletion, even when there are uncommitted/unpushed changes"
|
||||||
)]
|
)]
|
||||||
pub force: bool,
|
pub force: bool,
|
||||||
}
|
}
|
||||||
@@ -132,18 +130,15 @@ pub struct WorktreeFetchArgs {}
|
|||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
pub struct WorktreePullArgs {
|
pub struct WorktreePullArgs {
|
||||||
#[clap(
|
#[clap(long = "--rebase", help = "Perform a rebase instead of a fast-forward")]
|
||||||
long = "--rebase",
|
|
||||||
about = "Perform a rebase instead of a fast-forward"
|
|
||||||
)]
|
|
||||||
pub rebase: bool,
|
pub rebase: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
pub struct WorktreeRebaseArgs {
|
pub struct WorktreeRebaseArgs {
|
||||||
#[clap(long = "--pull", about = "Perform a pull before rebasing")]
|
#[clap(long = "--pull", help = "Perform a pull before rebasing")]
|
||||||
pub pull: bool,
|
pub pull: bool,
|
||||||
#[clap(long = "--rebase", about = "Perform a rebase when doing a pull")]
|
#[clap(long = "--rebase", help = "Perform a rebase when doing a pull")]
|
||||||
pub rebase: bool,
|
pub rebase: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user