Skip to content

Commit 96510e8

Browse files
committed
Add pushable script and fix issue
1 parent ddf6c6b commit 96510e8

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

scripts/pushable

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
echo "Running pre-push checks..."
5+
6+
echo "→ cargo fmt --check"
7+
cargo fmt -- --check
8+
9+
echo "→ cargo clippy"
10+
cargo clippy -- -D warnings
11+
12+
echo "→ cargo build --release"
13+
cargo build --release
14+
15+
echo "→ cargo test"
16+
cargo test
17+
18+
echo "✓ All checks passed!"

src/config.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
use anyhow::{Context, Result};
22
use serde::Deserialize;
3-
use std::{env, fs, path::{Path, PathBuf}};
3+
use std::{
4+
env, fs,
5+
path::{Path, PathBuf},
6+
};
47

58
/// Represents global application settings loaded from cmdy.toml.
69
#[derive(Debug, Deserialize)]

0 commit comments

Comments
 (0)