Skip to content

Commit 4010361

Browse files
committed
- Add command function directive
1 parent 45781fc commit 4010361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/bashly/script/command.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def option_keys
99
alias args catch_all commands completions
1010
default dependencies environment_variables examples
1111
extensible expose filename filters flags
12-
footer group help name
12+
footer function group help name
1313
private version
1414
short
1515
]
@@ -168,7 +168,7 @@ def flags
168168

169169
# Returns a unique name, suitable to be used in a bash function
170170
def function_name
171-
full_name.to_underscore
171+
options['function'] || full_name.to_underscore
172172
end
173173

174174
# Returns the name of the command, including its parent name (in case

0 commit comments

Comments
 (0)