Add example specs: simple.json and my-cli.yaml
This commit is contained in:
36
examples/simple.json
Normal file
36
examples/simple.json
Normal file
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user