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/completely/commands/generate.rb
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5,24 +5,24 @@ module Commands
5
5
classGenerate < Base
6
6
help"Generate the bash completion script to a file"
7
7
8
-
usage"completely generate [CONFIG_PATH SCRIPT_PATH --function NAME --wrap NAME]"
8
+
usage"completely generate [CONFIG_PATH OUTPUT_PATH --function NAME --wrap NAME]"
9
9
usage"completely generate (-h|--help)"
10
10
11
11
option_function
12
12
option"-w --wrap NAME","Wrap the completion script inside a function that echos the script. This is useful if you wish to embed it directly in your script"
13
13
14
14
param_config_path
15
-
param"SCRIPT_PATH","Path to the output bash script. When not provided, the name of the input file will be used with a .bash extension\nCan also be set by an environment variable"
15
+
param"OUTPUT_PATH","Path to the output bash script. When not provided, the name of the input file will be used with a .bash extension\nCan also be set by an environment variable"
16
16
17
17
environment_config_path
18
-
environment"COMPLETELY_SCRIPT_PATH","Path to the output bash script"
18
+
environment"COMPLETELY_OUTPUT_PATH","Path to the output bash script"
Copy file name to clipboardExpand all lines: lib/completely/commands/test.rb
+2-29Lines changed: 2 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,6 @@ class Test < Base
9
9
This command can be used to test that any completion script (either generated by compeltely or not) responds with the right completions.
10
10
11
11
In order to test on a completely configuration file other than 'completely.yaml', set the COMPLETELY_CONFIG_PATH environemnt variable.
12
-
13
-
In order to test on an arbitrary completions script, set the COMPLETELY_SCRIPT_PATH and optionally the COMPLETELY_SCRIPT_FUNCTION environment variables.
14
12
EOF
15
13
16
14
usage"completely test COMPLINE"
@@ -19,21 +17,12 @@ class Test < Base
19
17
param"COMPLINE","The command to test completions for. This will be handled as if a TAB was pressed immediately at the end of it, so the last word is considered the active cursor. If you wish to complete for the next word instead, end your command with a space."
20
18
21
19
environment_config_path
22
-
environment"COMPLETELY_SCRIPT_PATH","Path to a completions script. When set, this script will be tested instead of the completely configuration file"
23
-
environment"COMPLETELY_SCRIPT_FUNCTION","The main completion function to call when using a custom script. If not set, the basename of the script path will be used, prefixed by an underscore"
0 commit comments