File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ _@go.complete_top_level_commands() {
6
6
_@go.source_builtin ' commands'
7
7
else
8
8
printf ' help\n'
9
- _@go.source_builtin ' commands' " $_GO_SCRIPTS_DIR "
9
+
10
+ local plugins_paths
11
+ printf -v plugins_paths ' %s:' " ${_GO_PLUGINS_PATHS[@]} "
12
+ scripts_paths=" ${plugins_paths%: } "
13
+ _@go.source_builtin ' commands' " $_GO_SCRIPTS_DIR :$plugins_paths "
10
14
fi
11
15
}
12
16
Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ teardown() {
45
45
assert_failure ' '
46
46
}
47
47
48
- @test " $SUITE : _GO_STANDALONE only completes 'help' and project scripts" {
48
+ @test " $SUITE : _GO_STANDALONE only completes 'help' and custom scripts/plugins " {
49
49
@go.create_test_command_script ' foo'
50
50
@go.create_test_command_script ' bar'
51
51
@go.create_test_command_script ' plugins/baz/bin/baz'
52
52
53
53
_GO_STANDALONE=' true' run " $TEST_GO_SCRIPT " complete 0
54
- assert_success ' help' ' bar' ' foo'
54
+ assert_success ' help' ' bar' ' baz ' ' foo'
55
55
}
56
56
57
57
@test " $SUITE : cd and pushd complete directories" {
You can’t perform that action at this time.
0 commit comments