seph
api
object, and not something that’s passed around.Andrew Guthrie
11/07/2019, 6:36 AMapi
that returned a custom struct that implements the GoQueryAPI
interface. The api
module imported by the commands is just a shim for the calls into that struct.
Maybe we can implement an option if the server calls could be standardized such that the only integration would be defining the url of each action endpoint (login basic auth/saml, connect, schedule)seph
seph
Andrew Guthrie
11/07/2019, 7:54 PMseph
seph
seph
func main() {
intApi := myApi.New(hostname)
p := prompt.New(intApi)
p.Run()
}
vs the model today where the API is a global and I can’t really keep trackseph
api/driver.go
stuff move to main.seph
Andrew Guthrie
11/07/2019, 8:42 PMseph
Andrew Guthrie
11/07/2019, 8:43 PMseph
seph
obelisk
11/07/2019, 8:47 PMobelisk
11/07/2019, 8:47 PMobelisk
11/07/2019, 8:48 PMseph
seph
obelisk
11/07/2019, 8:51 PMseph
seph
seph
obelisk
11/07/2019, 8:55 PMobelisk
11/07/2019, 8:56 PMseph
seph
obelisk
11/07/2019, 8:57 PMseph
obelisk
11/07/2019, 8:57 PMseph
obelisk
11/07/2019, 8:58 PMobelisk
11/07/2019, 8:58 PMobelisk
11/07/2019, 8:58 PMobelisk
11/07/2019, 8:58 PMseph
seph
seph
obelisk
11/07/2019, 9:01 PMobelisk
11/07/2019, 9:01 PMseph