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 src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use clap::{Parser, Subcommand};
pub use route::{CheckRoute, route_check};

#[derive(Parser)]
#[command(name = "runok")]
#[command(name = "runok", version)]
pub struct Cli {
#[command(subcommand)]
pub command: Commands,
Expand Down
10 changes: 10 additions & 0 deletions tests/e2e/cli.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use predicates::prelude::*;

#[test]
fn version_flag_prints_version() {
let mut cmd = assert_cmd::cargo_bin_cmd!("runok");
cmd.arg("--version")
.assert()
.success()
.stdout(predicate::str::contains(env!("CARGO_PKG_VERSION")));
}
1 change: 1 addition & 0 deletions tests/e2e/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
mod check_claude_code_hook;
mod check_format_auto_detect;
mod check_generic;
mod cli;
mod error_handling;
mod exec;
mod helpers;
Loading