diff options
author | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-06-18 10:49:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-18 10:49:34 -0400 |
commit | ae02ae47383f143c85ef99d423eec63b8dc06659 (patch) | |
tree | 0b3ddd831a86d8e0ce55ffc0071adb1f4b584cbf /src/combiner.rs | |
parent | ed86e91e01aa0b8adaf76e3b96b627b94a68a354 (diff) | |
parent | b3a4b38494e2861120a5e3708f2e060de16489df (diff) | |
download | rust-installer-ae02ae47383f143c85ef99d423eec63b8dc06659.tar.gz |
Merge pull request #114 from notriddle/master
Bump to clap 3
Diffstat (limited to 'src/combiner.rs')
-rw-r--r-- | src/combiner.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/combiner.rs b/src/combiner.rs index 006a40c..2ec09d6 100644 --- a/src/combiner.rs +++ b/src/combiner.rs @@ -13,34 +13,44 @@ actor! { #[derive(Debug)] pub struct Combiner { /// The name of the product, for display. + #[clap(value_name = "NAME")] product_name: String = "Product", /// The name of the package tarball. + #[clap(value_name = "NAME")] package_name: String = "package", /// The directory under lib/ where the manifest lives. + #[clap(value_name = "DIR")] rel_manifest_dir: String = "packagelib", /// The string to print after successful installation. + #[clap(value_name = "MESSAGE")] success_message: String = "Installed.", /// Places to look for legacy manifests to uninstall. + #[clap(value_name = "DIRS")] legacy_manifest_dirs: String = "", /// Installers to combine. + #[clap(value_name = "FILE,FILE")] input_tarballs: String = "", /// Directory containing files that should not be installed. + #[clap(value_name = "DIR")] non_installed_overlay: String = "", /// The directory to do temporary work. + #[clap(value_name = "DIR")] work_dir: String = "./workdir", /// The location to put the final image and tarball. + #[clap(value_name = "DIR")] output_dir: String = "./dist", /// The formats used to compress the tarball - compression_formats: CompressionFormats = CompressionFormats::default(), + #[clap(value_name = "FORMAT", default_value_t)] + compression_formats: CompressionFormats, } } |