cli
cli copied to clipboard
Add support for customToken
Fixes https://github.com/humio/cli/issues/157
@SaaldjorMike @jespermbyskov anyone can have a quick look please?
The most recent changes refactors how we interact with GraphQL for the humioctl tool. Going forward, you have to
- update https://github.com/humio/cli/tree/master/internal/api/humiographql with any new interaction with the LogScale GraphQL API
- generate Go-code based on the updated GraphQL queries/mutations:
go generate ./... - update
humioctlwithin https://github.com/humio/cli/tree/master/cmd/humioctl so it uses the newly generated code
Right now the code path is as follows: https://github.com/humio/cli/tree/master/cmd/humioctl calls https://github.com/humio/cli/tree/master/internal/api which in turn calls the autogenerated code in https://github.com/humio/cli/blob/master/internal/api/humiographql/humiographql.go.