Skip to main content

run

Function run 

Source
pub fn run(init_format: InitFormat) -> Result<(), Error>
Expand description

Run oo init with the given format.

  • InitFormat::Claude (default): create .claude/hooks.json and print the AGENTS.md snippet.
  • InitFormat::Generic: print AGENTS.md snippet + setup instructions to stdout only (no files).

Uses the current working directory as the starting point for git-root detection.