From c2e0bd440851cc789785a2ccdc6dbda73b6e4afd Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Fri, 30 Jan 2026 07:13:22 +0000 Subject: [PATCH] Add example specs: simple.json and my-cli.yaml --- examples/simple.json | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 examples/simple.json diff --git a/examples/simple.json b/examples/simple.json new file mode 100644 index 0000000..3a1b2b1 --- /dev/null +++ b/examples/simple.json @@ -0,0 +1,36 @@ +{ + "name": "simple", + "version": "2.0.0", + "description": "A simple CLI with basic commands", + "bin": "simple", + "commands": [ + { + "name": "greet", + "description": "Greet a user", + "options": [ + { + "name": "name", + "short": "n", + "description": "Name to greet", + "type": "string" + }, + { + "name": "formal", + "description": "Use formal greeting", + "type": "boolean" + } + ] + }, + { + "name": "version", + "description": "Show version information", + "options": [ + { + "name": "json", + "description": "Output in JSON format", + "type": "boolean" + } + ] + } + ] +}