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