use super::super::registry::SlashCommand;
use crate::tui::app::NotificationKind;
use crate::tui::slash::{SlashCtx, SlashOutcome};
pub(crate) struct CommitCommand;
impl SlashCommand for CommitCommand {
fn name(&self) -> &str {
"commit"
}
fn description(&self) -> &str {
"Generate a commit message from staged changes"
}
fn usage(&self) -> &str {
"/commit [context]"
}
fn execute(&self, _args: &str, ctx: &mut SlashCtx<'_>) -> SlashOutcome {
ctx.state.add_notification(
"Commit tool is available via the agent (/tool commit) or CLI (oxi commit --dry-run)"
.into(),
NotificationKind::Info,
);
SlashOutcome::Handled
}
}