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
+66Lines changed: 66 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,20 @@ class Add < Base
8
8
usage"bashly add config [--force]"
9
9
usage"bashly add colors [--force]"
10
10
usage"bashly add yaml [--force]"
11
+
usage"bashly add comp FORMAT [OUTPUT]"
11
12
usage"bashly add (-h|--help)"
12
13
13
14
option"-f --force","Overwrite existing files"
14
15
16
+
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'"
17
+
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."
18
+
15
19
command"strings","Copy an additional configuration file to your project, allowing you to customize all the tips and error strings."
16
20
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."
17
21
command"config","Add standard functions for handling INI files to the lib directory."
18
22
command"colors","Add standard functions for printing colorful and formatted text to the lib directory."
19
23
command"yaml","Add standard functions for reading YAML files to the lib directory."
24
+
command"comp","Generate a bash completions script or function."
20
25
21
26
environment"BASHLY_SOURCE_DIR","The path containing the bashly configuration and source files [default: src]"
0 commit comments