Skip to content

Commit 1905bcb

Browse files
authored
Merge pull request #660 from bashly-framework/fix/root-function-name
Fix function name in root command comment
2 parents 14f1c94 + 5775da6 commit 1905bcb

28 files changed

+57
-57
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
echo "# This file is located at 'src/root_command.sh'."
22
echo "# It contains the implementation for the 'download' command."
3-
echo "# The code you write here will be wrapped by a function named 'download_command()'."
3+
echo "# The code you write here will be wrapped by a function named 'root_command()'."
44
echo "# Feel free to edit this file; your changes will persist when regenerating."
55
inspect_args
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
echo "# This file is located at 'src/root_command.sh'."
22
echo "# It contains the implementation for the 'download' command."
3-
echo "# The code you write here will be wrapped by a function named 'download_command()'."
3+
echo "# The code you write here will be wrapped by a function named 'root_command()'."
44
echo "# Feel free to edit this file; your changes will persist when regenerating."
55
inspect_args
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
echo "# This file is located at 'src/root_command.sh'."
22
echo "# It contains the implementation for the 'convert' command."
3-
echo "# The code you write here will be wrapped by a function named 'convert_command()'."
3+
echo "# The code you write here will be wrapped by a function named 'root_command()'."
44
echo "# Feel free to edit this file; your changes will persist when regenerating."
55
inspect_args

examples/footer/src/root_command.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
echo "# This file is located at 'src/root_command.sh'."
22
echo "# It contains the implementation for the 'download' command."
3-
echo "# The code you write here will be wrapped by a function named 'download_command()'."
3+
echo "# The code you write here will be wrapped by a function named 'root_command()'."
44
echo "# Feel free to edit this file; your changes will persist when regenerating."
55
inspect_args
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
echo "# This file is located at 'src/root_command.sh'."
22
echo "# It contains the implementation for the 'download' command."
3-
echo "# The code you write here will be wrapped by a function named 'download_command()'."
3+
echo "# The code you write here will be wrapped by a function named 'root_command()'."
44
echo "# Feel free to edit this file; your changes will persist when regenerating."
55
inspect_args

examples/minimal/src/root_command.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
echo "# This file is located at 'src/root_command.sh'."
22
echo "# It contains the implementation for the 'download' command."
3-
echo "# The code you write here will be wrapped by a function named 'download_command()'."
3+
echo "# The code you write here will be wrapped by a function named 'root_command()'."
44
echo "# Feel free to edit this file; your changes will persist when regenerating."
55
inspect_args

examples/minus-v/src/root_command.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
echo "# This file is located at 'src/root_command.sh'."
22
echo "# It contains the implementation for the 'cli' command."
3-
echo "# The code you write here will be wrapped by a function named 'cli_command()'."
3+
echo "# The code you write here will be wrapped by a function named 'root_command()'."
44
echo "# Feel free to edit this file; your changes will persist when regenerating."
55
inspect_args
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
echo "# This file is located at 'src/root_command.sh'."
22
echo "# It contains the implementation for the 'login' command."
3-
echo "# The code you write here will be wrapped by a function named 'login_command()'."
3+
echo "# The code you write here will be wrapped by a function named 'root_command()'."
44
echo "# Feel free to edit this file; your changes will persist when regenerating."
55
inspect_args

lib/bashly/views/command/default_script.gtx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
> echo "# This file is located at '{{ "#{Settings.source_dir}/#{filename}" }}'."
22
> echo "# It contains the implementation for the '{{ full_name }}' command."
3-
> echo "# The code you write here will be wrapped by a function named '{{ function_name }}_command()'."
3+
> echo "# The code you write here will be wrapped by a function named '{{ root_command? ? 'root' : function_name }}_command()'."
44
> echo "# Feel free to edit this file; your changes will persist when regenerating."
55
if Settings.enabled? :inspect_args
66
> inspect_args

spec/approvals/examples/catch-all

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ Arguments:
3131
+ ./download something
3232
# This file is located at 'src/root_command.sh'.
3333
# It contains the implementation for the 'download' command.
34-
# The code you write here will be wrapped by a function named 'download_command()'.
34+
# The code you write here will be wrapped by a function named 'root_command()'.
3535
# Feel free to edit this file; your changes will persist when regenerating.
3636
args:
3737
- ${args[message]} = something
3838
+ ./download something with --additional args
3939
# This file is located at 'src/root_command.sh'.
4040
# It contains the implementation for the 'download' command.
41-
# The code you write here will be wrapped by a function named 'download_command()'.
41+
# The code you write here will be wrapped by a function named 'root_command()'.
4242
# Feel free to edit this file; your changes will persist when regenerating.
4343
args:
4444
- ${args[message]} = something
@@ -51,7 +51,7 @@ other_args:
5151
+ ./download something --debug -- also pass --debug to catch_all
5252
# This file is located at 'src/root_command.sh'.
5353
# It contains the implementation for the 'download' command.
54-
# The code you write here will be wrapped by a function named 'download_command()'.
54+
# The code you write here will be wrapped by a function named 'root_command()'.
5555
# Feel free to edit this file; your changes will persist when regenerating.
5656
args:
5757
- ${args[--debug]} = 1

0 commit comments

Comments
 (0)