Skip to content
Open
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
1 change: 1 addition & 0 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ expect_used = "deny"
too_many_lines = "deny"
unwrap_used = "deny"
wildcard_imports = "deny"
single_match_else = "deny"

[dependencies]
cel-interpreter = "0.10"
Expand Down
10 changes: 4 additions & 6 deletions core/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,11 @@ fn run_init(dir: &Path) -> io::Result<()> {
/// session directories accumulate indefinitely. `steplock clean` flushes them all.
/// The next hook invocation will start each checklist fresh.
fn run_clean(dir: &Path) -> io::Result<()> {
let steplock_dir = match find_repo_root_from(dir) {
Some(root) => root.join(".steplock"),
None => {
println!("steplock: no .steplock/ directory found — nothing to clean");
return Ok(());
}
let Some(root) = find_repo_root_from(dir) else {
println!("steplock: no .steplock/ directory found — nothing to clean");
return Ok(());
};
let steplock_dir = root.join(".steplock");
let sessions_dir = steplock_dir.join("sessions");
if !sessions_dir.exists() {
println!("steplock: no sessions to clean");
Expand Down
Loading