I noted that our parameter numbers are increasing so I am going to change the approach.
Every command should have an CommandNameOpts struct that will be passed down to the command, as a single parameter. This helps us to increase the number of parameters without breaking existing API (at least the compilation of the code)
I noted that our parameter numbers are increasing so I am going to change the approach.
Every command should have an
CommandNameOpts
struct that will be passed down to the command, as a single parameter. This helps us to increase the number of parameters without breaking existing API (at least the compilation of the code)Example code: