Skip to content

Commit

Permalink
feat(cli): +os&ver default value
Browse files Browse the repository at this point in the history
  • Loading branch information
2moe committed Feb 6, 2024
1 parent 84817b1 commit 910e3a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ env:
DEBIAN_FRONTEND: noninteractive
GET_BASE_DISK_LOG: debug
REG_USER: "robot$debian+bot_actions_2024"
ZSTD_LV: 18
ZSTD_LV: 22

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion assets/ci/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## get-base-disk

```sh
env CARGO_TARGET_DIR=/tmp/musl cross build --profile thin --target=x86_64-unknown-linux-musl -v
env CARGO_TARGET_DIR=/tmp/musl cross build --package get-base-disk --profile thin --target=x86_64-unknown-linux-musl -v

cp /tmp/musl/x86_64-unknown-linux-musl/thin/get-base-disk ./tmp.get-base-disk

Expand Down
4 changes: 2 additions & 2 deletions crates/get-base-disk/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ pub(crate) const PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
/// Example: --os debian --ver 2.2 --tag base --obtain --build
pub(crate) struct Cli {
/// OS Name, e.g. debian, ubuntu
#[arg(long, id = "OS_Name")]
#[arg(long, id = "OS_Name", default_value = "debian")]
os: String,

/// Version, e.g. 1.3, 2.0, 22.04
#[arg(long)]
#[arg(long, default_value = "2.1")]
ver: String,

/// e.g. base
Expand Down

0 comments on commit 910e3a3

Please sign in to comment.