diff options
| author | diogo464 <[email protected]> | 2025-06-19 09:11:18 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-06-19 09:11:18 +0100 |
| commit | 0f9ae08bae9a9b417a741ebc8161cdeb6dbb39ca (patch) | |
| tree | 32c6f8e72ae8a4c746687158accfe2aef386ee86 /tests | |
| parent | 413b3214f2a1a5714fe872220c46ff210178ab76 (diff) | |
Add llm command for comprehensive usage documentation
- Add 'demon llm' command that outputs detailed usage guide
- Comprehensive documentation targeted at LLM consumption
- Covers all commands with syntax, behavior, and examples
- Includes common workflows, best practices, and integration tips
- Explains file management, error handling, and scripting patterns
- Add test to verify LLM command output contains key sections
This provides a complete reference that other LLMs can use to understand
how to effectively use the demon CLI tool.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/cli.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/cli.rs b/tests/cli.rs index 05e3efd..37398e6 100644 --- a/tests/cli.rs +++ b/tests/cli.rs | |||
| @@ -376,4 +376,24 @@ fn test_list_quiet_mode() { | |||
| 376 | .stdout(predicate::str::contains("ID").not()) | 376 | .stdout(predicate::str::contains("ID").not()) |
| 377 | .stdout(predicate::str::contains("PID").not()) | 377 | .stdout(predicate::str::contains("PID").not()) |
| 378 | .stdout(predicate::str::contains("STATUS").not()); | 378 | .stdout(predicate::str::contains("STATUS").not()); |
| 379 | } | ||
| 380 | |||
| 381 | #[test] | ||
| 382 | fn test_llm_command() { | ||
| 383 | let mut cmd = Command::cargo_bin("demon").unwrap(); | ||
| 384 | cmd.args(&["llm"]) | ||
| 385 | .assert() | ||
| 386 | .success() | ||
| 387 | .stdout(predicate::str::contains("# Demon - Daemon Process Management CLI")) | ||
| 388 | .stdout(predicate::str::contains("## Available Commands")) | ||
| 389 | .stdout(predicate::str::contains("demon run")) | ||
| 390 | .stdout(predicate::str::contains("demon stop")) | ||
| 391 | .stdout(predicate::str::contains("demon list")) | ||
| 392 | .stdout(predicate::str::contains("demon tail")) | ||
| 393 | .stdout(predicate::str::contains("demon cat")) | ||
| 394 | .stdout(predicate::str::contains("demon status")) | ||
| 395 | .stdout(predicate::str::contains("demon clean")) | ||
| 396 | .stdout(predicate::str::contains("Common Workflows")) | ||
| 397 | .stdout(predicate::str::contains("Best Practices")) | ||
| 398 | .stdout(predicate::str::contains("Integration Tips")); | ||
| 379 | } \ No newline at end of file | 399 | } \ No newline at end of file |
