File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ _@go.complete_top_level_commands() {
66 _@go.source_builtin ' commands'
77 else
88 printf ' help\n'
9- _@go.source_builtin ' commands' " $_GO_SCRIPTS_DIR "
9+ IFS=' :' eval " plugin_paths='${_GO_PLUGINS_PATHS[*]} '"
10+ _@go.source_builtin ' commands' " $_GO_SCRIPTS_DIR :$plugin_paths "
1011 fi
1112}
1213
Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ teardown() {
4545 assert_failure ' '
4646}
4747
48- @test " $SUITE : _GO_STANDALONE only completes 'help' and project scripts" {
48+ @test " $SUITE : _GO_STANDALONE only completes 'help' and custom scripts/plugins " {
4949 @go.create_test_command_script ' foo'
5050 @go.create_test_command_script ' bar'
5151 @go.create_test_command_script ' plugins/baz/bin/baz'
5252
5353 _GO_STANDALONE=' true' run " $TEST_GO_SCRIPT " complete 0
54- assert_success ' help' ' bar' ' foo'
54+ assert_success ' help' ' bar' ' baz ' ' foo'
5555}
5656
5757@test " $SUITE : cd and pushd complete directories" {
You can’t perform that action at this time.
0 commit comments