Added build command

This commit is contained in:
Eduard Urbach 2023-10-17 15:10:35 +02:00
parent 4f2bb677dc
commit 56bb014b51
Signed by: eduard
GPG key ID: 49226B848C78F6C8
7 changed files with 103 additions and 12 deletions

View file

@ -14,9 +14,12 @@ func TestCLI(t *testing.T) {
}
tests := []cliTest{
{[]string{}, 1},
{[]string{"invalid"}, 1},
{[]string{}, 2},
{[]string{"invalid"}, 2},
{[]string{"system"}, 0},
{[]string{"build", "non-existing-directory"}, 1},
{[]string{"build", "examples/hello/hello.q"}, 2},
{[]string{"build", "examples/hello", "--invalid"}, 2},
}
for _, test := range tests {