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
only statically defined dependencies are supported
What is the expected behavior?
Developers need to be able to define a function that has rules about when other fields are required.
For example, if making a HTTP client like curl, you would define flags for 'method' and 'data' (body). The data field is required ONLY WHEN method=POST.
I propose the "dependsOn" flag property be an object rather than an array, where the keys are the names of other fields required, and the values are true or a async function that is passed the complete command context and must return a bool.
Please mention your oclif and OS version.
@oclif/command": "^1.5.19
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
feature
What is the current behavior?
only statically defined dependencies are supported
What is the expected behavior?
Developers need to be able to define a function that has rules about when other fields are required.
For example, if making a HTTP client like curl, you would define flags for 'method' and 'data' (body). The data field is required ONLY WHEN method=POST.
I propose the "dependsOn" flag property be an object rather than an array, where the keys are the names of other fields required, and the values are
true
or a async function that is passed the complete command context and must return a bool.Please mention your oclif and OS version.
@oclif/command": "^1.5.19
The text was updated successfully, but these errors were encountered: