Skip to content

Commit

Permalink
lib: whitespace formatting in help strings
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Sep 12, 2021
1 parent 19c8bc8 commit 7612a3f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ bash-it ()
example '$ bash-it disable alias hg [tmux]...'
example '$ bash-it migrate'
example '$ bash-it update'
example '$ bash-it search [-|@]term1 [-|@]term2 ... [ -e/--enable ] [ -d/--disable ] [ -r/--refresh ] [ -c/--no-color ]'
example '$ bash-it search [-|@]term1 [-|@]term2 ... [-e|--enable] [-d|--disable] [-r|--refresh] [-c|--no-color]'
example '$ bash-it version'
example '$ bash-it reload'
example '$ bash-it restart'
Expand Down
24 changes: 12 additions & 12 deletions lib/search.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
#
# Usage:
# ❯ bash-it search [-|@]term1 [-|@]term2 ... \
# [ --enable | -e ] \
# [ --disable | -d ] \
# [ --no-color | -c ] \
# [ --refresh | -r ] \
# [ --help | -h ]
# [--enable |-e] \
# [--disable |-d] \
# [--no-color|-c] \
# [--refresh |-r] \
# [--help |-h]
#
# Single dash, as in "-chruby", indicates a negative search term.
# Double dash indicates a command that is to be applied to the search result.
Expand Down Expand Up @@ -50,7 +50,7 @@
_bash-it-search() {
_about 'searches for given terms amongst bash-it plugins, aliases and completions'
_param '1: term1'
_param '2: [ term2 ]...'
_param '2: [term2]...'
_example '$ _bash-it-search @git ruby -rvm rake bundler'

local component
Expand Down Expand Up @@ -96,11 +96,11 @@ _bash-it-search-help() {
${echo_underline_yellow}USAGE${echo_normal}
bash-it search [-|@]term1 [-|@]term2 ... \\
[ --enable | -e ] \\
[ --disable | -d ] \\
[ --no-color | -c ] \\
[ --refresh | -r ] \\
[ --help | -h ]
[--enable |-e] \\
[--disable |-d] \\
[--no-color|-c] \\
[--refresh |-r] \\
[--help |-h]
${echo_underline_yellow}DESCRIPTION${echo_normal}
Expand Down Expand Up @@ -186,7 +186,7 @@ _bash-it-component-term-matches-negation() {

_bash-it-search-component() {
_about 'searches for given terms amongst a given component'
_param '1: component type, one of: [ aliases | plugins | completions ]'
_param '1: component type, one of: [aliases|plugins|completions]'
_param '2: term1 term2 @term3'
_param '3: [-]term4 [-]term5 ...'
_example '$ _bash-it-search-component aliases @git rake bundler -chruby'
Expand Down

0 comments on commit 7612a3f

Please sign in to comment.