Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release-please-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.PAT_AFMT }}
release-type: simple
release-type: rust # Use the rust release type for Cargo.toml handling
6 changes: 3 additions & 3 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ pub struct Args {
}

pub fn get_args() -> Args {
const VERSION: &str = "v0.2.0";
let version = env!("CARGO_PKG_VERSION"); // read from Cargo.toml in compiling time

let matches = Command::new("afmt")
.version(VERSION)
.about(format!("Apex format tool (afmt): {}", VERSION))
.version(version)
.about(format!("Apex format tool (afmt): {}", version))
.arg_required_else_help(true)
.arg(
ClapArg::new("file")
Expand Down
Loading