You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client package has a god-interface with an ever-growing method set. It's causing us some problems.
Refactor the client so that this interface is not required.
Refactor each command to not require a *cli.SensuCli. Instead it should require a config object and a minimal interface. For example, here is the diff for refactoring the check create command:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The client package has a god-interface with an ever-growing method set. It's causing us some problems.
Refactor the client so that this interface is not required.
Refactor the root and help commands to work this way too.
Refactor the main to work this way (./cmd/sensuctl)
Remove the cli.APIClient interface.
When the refactor is complete, the cli.SensuCli type will only be used in sensuctl main.
The text was updated successfully, but these errors were encountered: