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
We have support for ClientOpts struct, which will work as global client options for each command and help to initiate a new microcksClient according to the global options.
All the current commands who are initiating a microcks client should implement it to create a microcks client based on the global configuration, and it will reduce the overhead of setting some flags for each command.
Description
Benifits
This feature will remove flags like verbose, insecureTLS, caCerts from each command, and we can mention them in root command and make it persistent to all sub commands.
We can also use flags like --context to perform something in specific context dynamically and --config-path to load the configs from custom config location on the fly.
We can manipulate the configs of the MicrocksClient for specific command.
Reason/Context
ClientOptsstruct, which will work as global client options for each command and help to initiate a newmicrocksClientaccording to the global options.Description
Benifits
verbose,insecureTLS,caCertsfrom each command, and we can mention them inrootcommand and make it persistent to all sub commands.--contextto perform something in specific context dynamically and--config-pathto load the configs from custom config location on the fly.Implementation ideas
No response