File tree Expand file tree Collapse file tree 6 files changed +24
-13
lines changed Expand file tree Collapse file tree 6 files changed +24
-13
lines changed Original file line number Diff line number Diff line change 5959
6060help "Append the content of bashly.yml to all example READMEs"
6161action :examples do
62- # Disable color output (for colors-usage example )
62+ # Disable color output (for the color examples )
6363 ENV['NO_COLOR']='1'
6464
6565 # Patch the PATH to allow the extensible example to run properly
Original file line number Diff line number Diff line change @@ -95,8 +95,10 @@ usage_colors:
9595 arg : blue
9696 flag : magenta
9797 environment_variable : cyan
98+
9899```
99100
101+
100102## Generated script output
101103
102104### ` $ ./cli `
@@ -112,6 +114,9 @@ Usage:
112114Commands:
113115 download Download a file
114116 upload Upload a file
117+
118+
119+
115120```
116121
117122### ` $ ./cli -h `
@@ -138,6 +143,9 @@ Options:
138143Environment Variables:
139144 API_KEY
140145 Set your API key
146+
147+
148+
141149```
142150
143151### ` $ ./cli download -h `
@@ -172,4 +180,10 @@ Environment Variables:
172180Examples:
173181 cli download example.com
174182 cli download example.com ./output -f
183+
184+
185+
175186```
187+
188+
189+
Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ flags:
4646
4747` ` ` yaml
4848# Usage captions
49- usage: "== Usage ==\n "
50- options: "== Options ==\n "
51- arguments: "== Arguments ==\n "
52- commands: "== Commands ==\n "
49+ usage: "== Usage =="
50+ options: "== Options =="
51+ arguments: "== Arguments =="
52+ commands: "== Commands =="
5353
5454# Fixed flags help text
5555help_flag_text: Show this helpful help
Original file line number Diff line number Diff line change 11# Usage captions
2- usage : " == Usage ==\n "
3- options : " == Options ==\n "
4- arguments : " == Arguments ==\n "
5- commands : " == Commands ==\n "
2+ usage : " == Usage =="
3+ options : " == Options =="
4+ arguments : " == Arguments =="
5+ commands : " == Commands =="
66
77# Fixed flags help text
88help_flag_text : Show this helpful help
Original file line number Diff line number Diff line change @@ -11,13 +11,11 @@ usage: download SOURCE [OPTIONS]
1111download - Sample minimal application with custom strings
1212
1313== Usage ==
14-
1514 download SOURCE [OPTIONS]
1615 download --help | -h
1716 download --version | -v
1817
1918== Options ==
20-
2119 --help, -h
2220 Show this helpful help
2321
@@ -28,7 +26,6 @@ download - Sample minimal application with custom strings
2826 Target directory
2927
3028== Arguments ==
31-
3229 SOURCE
3330 URL to download from
3431
Original file line number Diff line number Diff line change 2121 end
2222
2323 it 'returns values from the user config, falling back to defaults' do
24- expect ( subject [ :usage ] ) . to eq "== Usage ==\n "
24+ expect ( subject [ :usage ] ) . to eq "== Usage =="
2525 end
2626 end
2727end
You can’t perform that action at this time.
0 commit comments