refactor: expose generated code and client business logic to share with Kapacitor (#103)
* refactor: take clients out of internal * refactor: move stdio to pkg * Move internal/api to api * refactor: final changes for Kapacitor to access shared functionality * chore: regenerate mocks * fix: bad automated refactor * chore: extra formatting not caught by make fmt
This commit is contained in:
@ -4,14 +4,14 @@ import (
|
||||
"errors"
|
||||
"strings"
|
||||
|
||||
"github.com/influxdata/influx-cli/v2/internal/cmd"
|
||||
"github.com/influxdata/influx-cli/v2/internal/cmd/query"
|
||||
"github.com/influxdata/influx-cli/v2/clients"
|
||||
"github.com/influxdata/influx-cli/v2/clients/query"
|
||||
"github.com/influxdata/influx-cli/v2/pkg/cli/middleware"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
func newQueryCmd() *cli.Command {
|
||||
var orgParams cmd.OrgParams
|
||||
var orgParams clients.OrgParams
|
||||
return &cli.Command{
|
||||
Name: "query",
|
||||
Usage: "Execute a Flux query",
|
||||
@ -50,7 +50,7 @@ func newQueryCmd() *cli.Command {
|
||||
},
|
||||
),
|
||||
Action: func(ctx *cli.Context) error {
|
||||
queryString, err := readQuery(ctx)
|
||||
queryString, err := clients.ReadQuery(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user