Skip to content

Commit e8fc115

Browse files
authored
Merge branch 'master' into fix/env-var
2 parents de53fa5 + ca8ca7b commit e8fc115

File tree

6 files changed

+25
-1
lines changed

6 files changed

+25
-1
lines changed

lib/bashly/docs/flag.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ flag.long:
112112
short: -s
113113
help: Clone using SSH
114114
115+
flag.private:
116+
help: Specify that this flag should not be displayed in the help text.
117+
url: https://bashly.dannyb.co/configuration/flag/#private
118+
example: |-
119+
flags:
120+
- long: --legacy
121+
short: -l
122+
help: Run using the legacy mode
123+
private: true
124+
115125
flag.repeatable:
116126
help: |-
117127
Specify that this flag can be provided multiple times. When used on a flag with an argument, it will be received as a space-delimited string, which needs to be converted to an array with:

lib/bashly/libraries/help.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def post_install_message
2929
private
3030

3131
def help_command
32-
asset_content('templates/help/help_command.sh') % { name: command.name }
32+
asset_content('templates/lib/help_command.sh') % { name: command.name }
3333
end
3434
end
3535
end

spec/approvals/cli/doc/full

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,18 @@ flag.long
671671

672672
See https://bashly.dannyb.co/configuration/flag/#long
673673

674+
flag.private
675+
676+
Specify that this flag should not be displayed in the help text.
677+
678+
flags:
679+
- long: --legacy
680+
short: -l
681+
help: Run using the legacy mode
682+
private: true
683+
684+
See https://bashly.dannyb.co/configuration/flag/#private
685+
674686
flag.repeatable
675687

676688
Specify that this flag can be provided multiple times. When used on a flag

spec/approvals/cli/doc/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ flag.conflicts
4242
flag.default
4343
flag.help
4444
flag.long
45+
flag.private
4546
flag.repeatable
4647
flag.required
4748
flag.short

spec/approvals/cli/doc/private

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
command.private
22
environment_variable.private
3+
flag.private

0 commit comments

Comments
 (0)