-
Notifications
You must be signed in to change notification settings - Fork 2
/
wireframe_cli.yaml
86 lines (70 loc) · 1.97 KB
/
wireframe_cli.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# program name, name for the executable
ProgramName: wireframe
Authors: Myself <me@mine.org>
Since: 2017
PackageName: main
Name: wireframe
Desc: "wire framing"
Text: Tool to showcase wire-framing command line app fast prototype
#NumOption: cli.AtLeast(1)
Style: cli.DenseNormalStyle
NumArg: cli.AtLeast(1)
Global: true
# this (Self) means that root option is using the self-config .json file
Self: true
#UsageLead: "Usage:\\n wireframe [Options] dir [dirs...]"
Options:
- Name: Self
Type: '*rootT'
Flag: c,config
Usage: config file\n
#Value: "$__EXEC_FILENAME.json"
Value: wireframe_cfg.json
- Name: Host
Type: string
Flag: H,host
Usage: host addr
Value: '$HOST'
- Name: Port
Type: int
Flag: p,port
Usage: listening port\n
- Name: Demo
Type: string
Flag: long
Usage: Now can use the \\n to arrange parameters in groups\n\t\t\tJust like what is showing here, even with extreme long usage text that can spread across multiple lines\n
Value: '$Demo'
- Name: Daemonize
Type: bool
Flag: D,daemonize
Usage: daemonize the service
- Name: Verbose
Type: cli.Counter
Flag: v,verbose
Usage: Verbose mode (Multiple -v options increase the verbosity)\n
Command:
- Name: put
Desc: "Upload into service"
Text: 'Usage:\n wireframe put -i /tmp/f'
Aliases: '"up","upload"'
#NumArg: cli.AtLeast(1)
NumOption: cli.AtLeast(1)
Options:
- Name: Filei
Type: '*clix.Reader'
Flag: '*i,input'
Usage: The file to upload from (mandatory)
- Name: get
Desc: Get from the service
Text: 'Usage:\n wireframe get -o /tmp/f mandatory some more args'
NumArg: cli.AtLeast(1)
#NumOption: cli.AtLeast(1)
Options:
- Name: Filei
Type: '*clix.Reader'
Flag: '*i,input'
Usage: The file to upload from (mandatory)
- Name: Fileo
Type: '*clix.Writer'
Flag: o,output
Usage: 'The output file (default: some file)'