Im using the following code which run command against binary and need to provide output
if I run the command ftr get apps
in the in my mac I got
[app1 apps2]
Now I copy the binary to the test data folder and run the code below and I want to get the apps, currenlty there is no error but Im not getting also the data, what could be missing here?
Cmd := exec.Command("ftr", "get", "apps")
Cmd.Dir = "./testdata/"
err := Cmd.Start()
fmt.Println(err)
bytes, e := Cmd.Output()
fmt.Println(bytes, e)