Update bootstrap
This commit is contained in:
parent
af41d1c006
commit
6ca276c125
23
Cargo.lock
generated
23
Cargo.lock
generated
@ -619,7 +619,7 @@ checksum = "cef509aa9bc73864d6756f0d34d35504af3cf0844373afe9b8669a5b8005a729"
|
||||
dependencies = [
|
||||
"console",
|
||||
"number_prefix",
|
||||
"portable-atomic",
|
||||
"portable-atomic 0.3.20",
|
||||
"unicode-segmentation",
|
||||
"unicode-width",
|
||||
"vt100",
|
||||
@ -680,9 +680,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.142"
|
||||
version = "0.2.143"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6a987beff54b60ffa6d51982e1aa1146bc42f19bd26be28b0586f252fccf5317"
|
||||
checksum = "edc207893e85c5d6be840e969b496b53d94cec8be2d501b214f50daa97fa8024"
|
||||
|
||||
[[package]]
|
||||
name = "link-cplusplus"
|
||||
@ -781,9 +781,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
|
||||
|
||||
[[package]]
|
||||
name = "package-bootstrap"
|
||||
version = "0.2.1"
|
||||
version = "0.3.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b44f1db147048186ea8be34e803e16ad50a5eb47c9ab6a8e098276a6c8d112dd"
|
||||
checksum = "0001bc846810858401c4c1eac2ac8024d907a0931d865ea5079a330ba702dad5"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"clap_complete",
|
||||
@ -805,9 +805,18 @@ checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
|
||||
|
||||
[[package]]
|
||||
name = "portable-atomic"
|
||||
version = "0.3.19"
|
||||
version = "0.3.20"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "26f6a7b87c2e435a3241addceeeff740ff8b7e76b74c13bf9acb17fa454ea00b"
|
||||
checksum = "e30165d31df606f5726b090ec7592c308a0eaf61721ff64c9a3018e344a8753e"
|
||||
dependencies = [
|
||||
"portable-atomic 1.3.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "portable-atomic"
|
||||
version = "1.3.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1bbda379e6e462c97ea6afe9f6233619b202bbc4968d7caa6917788d2070a044"
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro-crate"
|
||||
|
@ -44,7 +44,7 @@ features = ["improved_unicode", "vt100"]
|
||||
optional = true
|
||||
|
||||
[dependencies.package-bootstrap]
|
||||
version = "0.2"
|
||||
version = "0.3"
|
||||
features = ["mangen"]
|
||||
optional = true
|
||||
|
||||
|
@ -13,10 +13,10 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
.author("Nathan Fisher")
|
||||
.version(env!("CARGO_PKG_VERSION"))
|
||||
.args([
|
||||
Arg::new("arch")
|
||||
.help("the architecture of the binary to be installed")
|
||||
.short('a')
|
||||
.long("arch")
|
||||
Arg::new("target-dir")
|
||||
.help("the directory where the 'hpk' binary is located")
|
||||
.short('t')
|
||||
.long("target-dir")
|
||||
.num_args(1),
|
||||
Arg::new("output")
|
||||
.help("the output directory for the installation")
|
||||
@ -26,8 +26,10 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
.get_matches();
|
||||
let outdir = matches.get_one::<String>("output").unwrap().to_string();
|
||||
let outdir = PathBuf::from(&outdir);
|
||||
let arch = matches.get_one::<String>("arch").map(|x| x.to_string());
|
||||
Bootstrap::new("hpk", cli(), &outdir).install(arch, 8)?;
|
||||
let target_dir = matches
|
||||
.get_one::<String>("target-dir")
|
||||
.map(|x| x.to_string());
|
||||
Bootstrap::new("hpk", cli(), &outdir).install(target_dir, 8)?;
|
||||
Bootstrap::new("hpk-init", cli::init(), &outdir).manpage(8)?;
|
||||
Bootstrap::new("hpk-create", cli::create(), &outdir).manpage(8)?;
|
||||
Bootstrap::new("hpk-install", cli::install(), &outdir).manpage(8)?;
|
||||
|
Loading…
Reference in New Issue
Block a user