Skip to content

Commit 8b01029

Browse files
committed
update examples readme
1 parent b30d2aa commit 8b01029

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

examples/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Each of these examples demonstrates one aspect or feature of bashly.
3838
- [filters](filters#readme) - preventing commands from running unless custom conditions are met
3939
- [commands-expose](commands-expose#readme) - showing sub-commands in the parent's help
4040
- [key-value-pairs](key-value-pairs#readme) - parsing key=value arguments and flags
41+
- [command-examples-on-error](command-examples-on-error#readme) - showing examples on error
4142

4243
## Customization
4344

lib/bashly/views/command/examples_on_error.gtx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ if Settings.show_examples_on_error && examples.any?
33

44
> printf "{{ strings[:examples_caption_on_error] }}\n" >&2
55
examples.each do |example|
6-
> printf "{{ example.wrap(78).indent(2).sanitize_for_print }}\n" >&2
6+
> printf "{{ example.wrap(78).indent(2).sanitize_for_print }}\n" >&2
77
end
88
end

spec/bashly/script/command_spec.rb

-1
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,6 @@
627627
expect(subject.default_command.usage_string).to eq 'cli [get]'
628628
end
629629
end
630-
631630
end
632631

633632
describe '#user_file_path' do

0 commit comments

Comments
 (0)