You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/bashly/commands/add.rb
+41-33Lines changed: 41 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -3,29 +3,31 @@ module Commands
3
3
classAdd < Base
4
4
help"Add extra features and customization to your script"
5
5
6
-
usage"bashly add strings [--force]"
7
-
usage"bashly add lib [--force]"
8
-
usage"bashly add config [--force]"
9
6
usage"bashly add colors [--force]"
10
-
usage"bashly add yaml [--force]"
11
-
usage"bashly add validations [--force]"
12
-
usage"bashly add test [--force]"
13
7
usage"bashly add comp FORMAT [OUTPUT --force]"
8
+
usage"bashly add config [--force]"
9
+
usage"bashly add lib [--force]"
10
+
usage"bashly add settings [--force]"
11
+
usage"bashly add strings [--force]"
12
+
usage"bashly add test [--force]"
13
+
usage"bashly add validations [--force]"
14
+
usage"bashly add yaml [--force]"
14
15
usage"bashly add (-h|--help)"
15
16
16
17
option"-f --force","Overwrite existing files"
17
18
18
19
param"FORMAT","Output format, can be one of:\n function : generate a function file to be included in your script.\n script : generate a standalone bash completions script.\n yaml : generate a yaml compatible with completely."
19
20
param"OUTPUT","For the 'comp function' command: Name of the generated function.\nFor the 'comp script' or 'comp yaml' commands: path to output file.\nIn all cases, this is optional and will have sensible defaults."
20
21
21
-
command"strings","Copy an additional configuration file to your project, allowing you to customize all the tips and error strings."
22
-
command"lib","Create the additional lib directory for additional user scripts. All *.sh scripts in this folder will be included in the final bash script."
23
-
command"config","Add standard functions for handling INI files to the lib directory."
24
22
command"colors","Add standard functions for printing colorful and formatted text to the lib directory."
25
-
command"yaml","Add standard functions for reading YAML files to the lib directory."
26
-
command"validations","Add argument validation functions to the lib directory."
27
-
command"test","Add approval testing."
28
23
command"comp","Generate a bash completions script or function."
24
+
command"config","Add standard functions for handling INI files to the lib directory."
25
+
command"lib","Create the additional lib directory for additional user scripts. All *.sh scripts in this folder will be included in the final bash script."
26
+
command"settings","Copy a sample settings.yml file to your project, allowing you to customize some bashly options."
27
+
command"strings","Copy an additional configuration file to your project, allowing you to customize all the tips and error strings."
28
+
command"test","Add approval testing."
29
+
command"validations","Add argument validation functions to the lib directory."
30
+
command"yaml","Add standard functions for reading YAML files to the lib directory."
29
31
30
32
example"bashly add strings --force"
31
33
example"bashly add comp function"
@@ -34,45 +36,51 @@ class Add < Base
34
36
environment"BASHLY_SOURCE_DIR","The path containing the bashly configuration and source files [default: src]"
35
37
environment"BASHLY_LIB_DIR","The path to use for creating the library files, relative to the source dir [default: lib]"
0 commit comments