Skip to content

Commit 9910b69

Browse files
authored
Merge pull request #1019 from linsword13/autocomplete
Fix up `ramble unit-test` autocompletion
2 parents df66582 + d21023c commit 9910b69

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/ramble/ramble/cmd/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def format(self, cmd):
131131
"keys": "_keys",
132132
"help_command": "_subcommands",
133133
"namespace": "_repos",
134-
"pytest": "_tests",
134+
"pytest": "_unit_tests",
135135
}
136136

137137

share/ramble/bash/ramble-completion.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ _workspaces() {
160160
RAMBLE_COMPREPLY="$RAMBLE_WORKSPACES"
161161
}
162162

163-
_tests() {
163+
_unit_tests() {
164164
if [[ -z "${RAMBLE_TESTS:-}" ]]
165165
then
166-
RAMBLE_TESTS="$(ramble test -l)"
166+
RAMBLE_TESTS="$(ramble unit-test -l)"
167167
fi
168168
RAMBLE_COMPREPLY="$RAMBLE_TESTS"
169169
}

share/ramble/ramble-completion.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ _workspaces() {
160160
RAMBLE_COMPREPLY="$RAMBLE_WORKSPACES"
161161
}
162162

163-
_tests() {
163+
_unit_tests() {
164164
if [[ -z "${RAMBLE_TESTS:-}" ]]
165165
then
166-
RAMBLE_TESTS="$(ramble test -l)"
166+
RAMBLE_TESTS="$(ramble unit-test -l)"
167167
fi
168168
RAMBLE_COMPREPLY="$RAMBLE_TESTS"
169169
}
@@ -623,7 +623,7 @@ _ramble_unit_test() {
623623
then
624624
RAMBLE_COMPREPLY="-h --help -H --pytest-help --lib --obj -r --repo-path -l --list -L --list-long -N --list-names -s -k --showlocals"
625625
else
626-
_tests
626+
_unit_tests
627627
fi
628628
}
629629

0 commit comments

Comments
 (0)