chore: 更新 .gitignore 条目并调整调试脚本顺序
扩展两个 CLI 工具的 .gitignore 条目列表,包含更多本地生成的目录和文件。 同时将 cargo fmt 命令移至 cargo test 之后执行,以保持一致的检查流程。
This commit is contained in:
parent
61e73b0063
commit
8a8bd74378
2
debug.sh
2
debug.sh
|
|
@ -1,6 +1,6 @@
|
||||||
cargo check
|
cargo check
|
||||||
cargo fmt --all
|
|
||||||
cargo test
|
cargo test
|
||||||
|
cargo fmt --all
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,16 @@ const STARTER_CLAW_JSON: &str = concat!(
|
||||||
"}\n",
|
"}\n",
|
||||||
);
|
);
|
||||||
const GITIGNORE_COMMENT: &str = "# Claw Code local artifacts";
|
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)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub(crate) enum InitStatus {
|
pub(crate) enum InitStatus {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,16 @@ const STARTER_CLAW_JSON: &str = concat!(
|
||||||
"}\n",
|
"}\n",
|
||||||
);
|
);
|
||||||
const GITIGNORE_COMMENT: &str = "# Claw Code local artifacts";
|
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)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub(crate) enum InitStatus {
|
pub(crate) enum InitStatus {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue