Add `roles` command to humioctl
Add CRUD commands for Humio roles based on the work in https://github.com/humio/cli/pull/114.
I created this prior to #155 but I will rebase this onto that commit if it is accepted.
I just noticed that a bit of the changes in this PR were also in #124.
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.
Closing due to no activity. Feel free to submit a new PR when there's any updates.