refactor: move things around to make building a client easier from other projects (#123)

* refactor: split logic for building API config into public func
* refactor: move config code out of internal/
This commit is contained in:
Daniel Moran
2021-06-16 11:09:26 -04:00
committed by GitHub
parent 51b1eadb12
commit 1dad2f5f72
21 changed files with 104 additions and 70 deletions

View File

@ -13,7 +13,7 @@ import (
"github.com/influxdata/influx-cli/v2/api"
"github.com/influxdata/influx-cli/v2/clients"
"github.com/influxdata/influx-cli/v2/clients/write"
"github.com/influxdata/influx-cli/v2/internal/config"
"github.com/influxdata/influx-cli/v2/config"
"github.com/influxdata/influx-cli/v2/internal/mock"
"github.com/stretchr/testify/assert"
tmock "github.com/stretchr/testify/mock"