feat: implement ping command (#31)

* build: use deepmap/oapi-codegen to generate an HTTP client
* feat: add global CLI options
* feat: load local config to find host and token
* feat: implement ping command
* test: add unit tests for ping command
This commit is contained in:
Daniel Moran
2021-04-14 09:31:21 -04:00
committed by GitHub
parent 8c062cacf0
commit ca8a5c5364
17 changed files with 1307 additions and 3 deletions

15
internal/cli.go Normal file
View File

@ -0,0 +1,15 @@
package internal
import (
"io"
"github.com/influxdata/influx-cli/v2/internal/api"
)
type CLI struct {
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
TraceId *api.TraceSpan
}