cli icon indicating copy to clipboard operation
cli copied to clipboard

Add `roles` command to humioctl

Open bderrly opened this issue 1 year ago • 1 comments

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.

bderrly avatar Apr 12 '24 16:04 bderrly

I just noticed that a bit of the changes in this PR were also in #124.

bderrly avatar Apr 12 '24 16:04 bderrly

The most recent changes refactors how we interact with GraphQL for the humioctl tool. Going forward, you have to

  1. update https://github.com/humio/cli/tree/master/internal/api/humiographql with any new interaction with the LogScale GraphQL API
  2. generate Go-code based on the updated GraphQL queries/mutations: go generate ./...
  3. update humioctl within 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.

SaaldjorMike avatar Nov 19 '24 18:11 SaaldjorMike

Closing due to no activity. Feel free to submit a new PR when there's any updates.

SaaldjorMike avatar Feb 25 '25 16:02 SaaldjorMike