chore: 更新 .gitignore 条目并调整调试脚本顺序

扩展两个 CLI 工具的 .gitignore 条目列表,包含更多本地生成的目录和文件。
同时将 cargo fmt 命令移至 cargo test 之后执行,以保持一致的检查流程。
This commit is contained in:
zhaoyanchao 2026-04-30 11:08:17 +08:00
parent 61e73b0063
commit 8a8bd74378
3 changed files with 21 additions and 3 deletions

View File

@ -1,6 +1,6 @@
cargo check
cargo fmt --all
cargo test
cargo fmt --all

View File

@ -9,7 +9,16 @@ const STARTER_CLAW_JSON: &str = concat!(
"}\n",
);
const GITIGNORE_COMMENT: &str = "# Claw Code local artifacts";
const GITIGNORE_ENTRIES: [&str; 2] = [".claw/settings.local.json", ".claw/sessions/"];
const GITIGNORE_ENTRIES: [&str; 8] = [
".claw/settings.local.json",
".claw/sessions/",
".clawhip/",
".claude/",
".clawd-todos.json",
".learnings/",
".sandbox-home/",
".sandbox-tmp/",
];
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum InitStatus {

View File

@ -9,7 +9,16 @@ const STARTER_CLAW_JSON: &str = concat!(
"}\n",
);
const GITIGNORE_COMMENT: &str = "# Claw Code local artifacts";
const GITIGNORE_ENTRIES: [&str; 3] = [".claw/settings.local.json", ".claw/sessions/", ".clawhip/"];
const GITIGNORE_ENTRIES: [&str; 8] = [
".claw/settings.local.json",
".claw/sessions/",
".clawhip/",
".claude/",
".clawd-todos.json",
".learnings/",
".sandbox-home/",
".sandbox-tmp/",
];
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum InitStatus {