|
|
|
@ -16,43 +16,99 @@ var usageTestTable = []struct {
|
|
|
|
|
}{
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "smug"},
|
|
|
|
|
Options{"start", "smug", "", []string{}, false, false},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "smug", "-w", "foo"},
|
|
|
|
|
Options{"start", "smug", "", []string{"foo"}, false, false},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{"foo"},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "smug:foo,bar"},
|
|
|
|
|
Options{"start", "smug", "", []string{"foo", "bar"}, false, false},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{"foo", "bar"},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "smug", "--attach", "--debug"},
|
|
|
|
|
Options{"start", "smug", "", []string{}, true, true},
|
|
|
|
|
[]string{"start", "smug", "--attach", "--debug", "--detach"},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{},
|
|
|
|
|
Attach: true,
|
|
|
|
|
Detach: true,
|
|
|
|
|
Debug: true,
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "smug", "-ad"},
|
|
|
|
|
Options{"start", "smug", "", []string{}, true, true},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{},
|
|
|
|
|
Attach: true,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: true,
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "-f", "test.yml"},
|
|
|
|
|
Options{"start", "", "test.yml", []string{}, false, false},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "",
|
|
|
|
|
Config: "test.yml",
|
|
|
|
|
Windows: []string{},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "-f", "test.yml", "-w", "win1", "-w", "win2"},
|
|
|
|
|
Options{"start", "", "test.yml", []string{"win1", "win2"}, false, false},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "",
|
|
|
|
|
Config: "test.yml",
|
|
|
|
|
Windows: []string{"win1", "win2"},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|