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/test.rb
+17-8Lines changed: 17 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,13 @@ module Commands
5
5
classTest < Base
6
6
summary"Test completions"
7
7
8
-
help<<~EOF
9
-
This command can be used to test that any completion script (either generated by compeltely or not) responds with the right completions.
8
+
help"This command can be used to test that your completions script responds with the right completions. It works by reading your completely.yaml file, generating a completions script, and generating a temporary testing script."
10
9
11
-
In order to test on a completely configuration file other than 'completely.yaml', set the COMPLETELY_CONFIG_PATH environemnt variable.
12
-
EOF
13
-
14
-
usage"completely test COMPLINE"
10
+
usage"completely test [--keep] COMPLINE"
15
11
usage"completely test (-h|--help)"
16
12
13
+
option"-k --keep","Keep the temporary testing script in the current directory"
14
+
17
15
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."
0 commit comments