aboutsummaryrefslogtreecommitdiff
path: root/crates/dinggerd/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/dinggerd/src/main.rs')
-rw-r--r--crates/dinggerd/src/main.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/crates/dinggerd/src/main.rs b/crates/dinggerd/src/main.rs
index fced7c2..9606d5b 100644
--- a/crates/dinggerd/src/main.rs
+++ b/crates/dinggerd/src/main.rs
@@ -82,7 +82,13 @@ enum Command {
/// Install integrations: an agent's hook extension (state and session
/// reports), or `zsh` (command lines for restore to retype).
Install {
- /// `pi`, or `zsh`.
+ /// `pi`, `claude`, or `zsh`.
+ agent: String,
+ },
+ /// An agent's hook, run by the agent (`dingger install` sets it up).
+ #[command(hide = true)]
+ Hook {
+ /// `claude`.
agent: String,
},
}
@@ -164,6 +170,8 @@ fn main() {
std::process::exit(1);
}
}
+ // Never fails the agent: exits 0, prints nothing.
+ Command::Hook { agent } => integrations::run_hook(&agent),
}
}