Skip to content

Commit 262b033

Browse files
committed
post review fixes
1 parent 1dc183d commit 262b033

File tree

6 files changed

+24
-13
lines changed

6 files changed

+24
-13
lines changed

Runfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ end
5959

6060
help "Append the content of bashly.yml to all example READMEs"
6161
action :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

examples/colors-usage/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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:
112114
Commands:
113115
download Download a file
114116
upload Upload a file
117+
118+
119+
115120
```
116121

117122
### `$ ./cli -h`
@@ -138,6 +143,9 @@ Options:
138143
Environment Variables:
139144
API_KEY
140145
Set your API key
146+
147+
148+
141149
```
142150

143151
### `$ ./cli download -h`
@@ -172,4 +180,10 @@ Environment Variables:
172180
Examples:
173181
cli download example.com
174182
cli download example.com ./output -f
183+
184+
185+
175186
```
187+
188+
189+

examples/custom-strings/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
5555
help_flag_text: Show this helpful help

examples/custom-strings/src/bashly-strings.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
88
help_flag_text: Show this helpful help

spec/approvals/examples/custom-strings

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ usage: download SOURCE [OPTIONS]
1111
download - 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

spec/bashly/message_strings_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
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
2727
end

0 commit comments

Comments
 (0)