-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcli.yml
58 lines (58 loc) · 2.12 KB
/
cli.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Brandon
version: 0.1.0
description: An utility to create command line applications from their YAML specifications.
tags: ['cli', 'stub', 'docs']
authors:
- name: Weslley Morellato Bueno
email: [email protected]
url: https://github.com/wmorellato
license: MIT License
url: https://github.com/wmorellato/brandon
languages: ['python']
schemas:
enums:
languages:
description: Supported languages to create application stubs.
items:
python: python
python-arg-libs:
description: Supported Python libraries for parsing command line arguments.
items:
click: click
cli:
generate:
description: Generation of different parts of the project.
arguments:
filename:
description: The path to the CLI Specification file describing the application.
type: string
commands:
project:
description: Generate the project structure and the command line interface from the CLI specification file pointed by FILENAME.
options:
overwrite:
description: If there is a project folder in the path pointed by `output-path` option, overwrites its contents.
short: f
type: flag
language:
description: Overwrite the default output language, which is defined from the first language provided in the `languages` key.
short: l
type: string
example: java
output-path:
description: Set the output path for the project folder.
type: string
short: o
default: Current directory
docs:
description: Generate the project documentation using MkDocs from the CLI specification file pointed by FILENAME.
options:
output-path:
description: Set the output path for the documentation.
type: string
short: o
default: Current directory
summary:
description: Generate a summary of the command line interface, to be used somewhere else, from the CLI specification file pointed by FILENAME.
version:
description: Show the version and exit.