From 0f9ae08bae9a9b417a741ebc8161cdeb6dbb39ca Mon Sep 17 00:00:00 2001 From: diogo464 Date: Thu, 19 Jun 2025 09:11:18 +0100 Subject: Add llm command for comprehensive usage documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- tests/cli.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests') 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() { .stdout(predicate::str::contains("ID").not()) .stdout(predicate::str::contains("PID").not()) .stdout(predicate::str::contains("STATUS").not()); +} + +#[test] +fn test_llm_command() { + let mut cmd = Command::cargo_bin("demon").unwrap(); + cmd.args(&["llm"]) + .assert() + .success() + .stdout(predicate::str::contains("# Demon - Daemon Process Management CLI")) + .stdout(predicate::str::contains("## Available Commands")) + .stdout(predicate::str::contains("demon run")) + .stdout(predicate::str::contains("demon stop")) + .stdout(predicate::str::contains("demon list")) + .stdout(predicate::str::contains("demon tail")) + .stdout(predicate::str::contains("demon cat")) + .stdout(predicate::str::contains("demon status")) + .stdout(predicate::str::contains("demon clean")) + .stdout(predicate::str::contains("Common Workflows")) + .stdout(predicate::str::contains("Best Practices")) + .stdout(predicate::str::contains("Integration Tips")); } \ No newline at end of file -- cgit