Run all builtins as plugins (#5536)

This commit is contained in:
Becca Petrin
2018-11-06 17:21:24 -08:00
committed by GitHub
parent f63bcdf106
commit fb89af7cfa
88 changed files with 1474 additions and 778 deletions

View File

@@ -29,7 +29,7 @@ func TestPluginListCommand_Run(t *testing.T) {
}{
{
"too_many_args",
[]string{"foo"},
[]string{"foo", "fizz"},
"Too many arguments",
1,
},
@@ -78,7 +78,7 @@ func TestPluginListCommand_Run(t *testing.T) {
ui, cmd := testPluginListCommand(t)
cmd.client = client
code := cmd.Run([]string{})
code := cmd.Run([]string{"database"})
if exp := 2; code != exp {
t.Errorf("expected %d to be %d", code, exp)
}