|
|
|
@ -17,13 +17,14 @@ var usageTestTable = []struct {
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "smug"},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
Settings: map[string]string{},
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
@ -31,13 +32,14 @@ var usageTestTable = []struct {
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "smug", "-w", "foo"},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{"foo"},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{"foo"},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
Settings: map[string]string{},
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
@ -45,13 +47,14 @@ var usageTestTable = []struct {
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "smug:foo,bar"},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{"foo", "bar"},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{"foo", "bar"},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
Settings: map[string]string{},
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
@ -59,33 +62,83 @@ var usageTestTable = []struct {
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "smug", "--attach", "--debug", "--detach"},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{},
|
|
|
|
|
Attach: true,
|
|
|
|
|
Detach: true,
|
|
|
|
|
Debug: true,
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{},
|
|
|
|
|
Attach: true,
|
|
|
|
|
Detach: true,
|
|
|
|
|
Debug: true,
|
|
|
|
|
Settings: map[string]string{},
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "smug", "-ad"},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{},
|
|
|
|
|
Attach: true,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: true,
|
|
|
|
|
Settings: map[string]string{},
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "-f", "test.yml"},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "",
|
|
|
|
|
Config: "test.yml",
|
|
|
|
|
Windows: []string{},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
Settings: map[string]string{},
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "-f", "test.yml", "-w", "win1", "-w", "win2"},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "",
|
|
|
|
|
Config: "test.yml",
|
|
|
|
|
Windows: []string{"win1", "win2"},
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
Settings: map[string]string{},
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "project", "a=b", "x=y"},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "smug",
|
|
|
|
|
Project: "project",
|
|
|
|
|
Config: "",
|
|
|
|
|
Windows: []string{},
|
|
|
|
|
Attach: true,
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: true,
|
|
|
|
|
Debug: false,
|
|
|
|
|
Settings: map[string]string{
|
|
|
|
|
"a": "b",
|
|
|
|
|
"x": "y",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "-f", "test.yml"},
|
|
|
|
|
[]string{"start", "-f", "test.yml", "a=b", "x=y"},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "",
|
|
|
|
@ -94,12 +147,16 @@ var usageTestTable = []struct {
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
Settings: map[string]string{
|
|
|
|
|
"a": "b",
|
|
|
|
|
"x": "y",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
[]string{"start", "-f", "test.yml", "-w", "win1", "-w", "win2"},
|
|
|
|
|
[]string{"start", "-f", "test.yml", "-w", "win1", "-w", "win2", "a=b", "x=y"},
|
|
|
|
|
Options{
|
|
|
|
|
Command: "start",
|
|
|
|
|
Project: "",
|
|
|
|
@ -108,6 +165,10 @@ var usageTestTable = []struct {
|
|
|
|
|
Attach: false,
|
|
|
|
|
Detach: false,
|
|
|
|
|
Debug: false,
|
|
|
|
|
Settings: map[string]string{
|
|
|
|
|
"a": "b",
|
|
|
|
|
"x": "y",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
nil,
|
|
|
|
|
0,
|
|
|
|
|