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
When using lint-staged, the default behaviour is to pass filenames as positional arguments to linting CLIs, e.g.: your-cmd file1.ext file2.ext
AFAIK there's no way to support positional arguments in this way in citty.
So, if I want to be able to support multiple positional arguments in my Citty CLI commands, I can't do it right now (or, at least, it's unclear if there is a way to do so).
Additional information
Would you be willing to help implement this feature?
The text was updated successfully, but these errors were encountered:
Maybe this will be a decent idea, .or anybody has better advise :)
exportdefaultdefineCommand({meta: {name: "lint",description: "A test command",},args: {files: {type: "multiple",description: "Files need be lint",},},run({ args }){// lint fileA.ts fileB.tsconsole.log(args.files)//=> ['fileA.ts', 'fileB.ts]},});
Additional information
Would you be willing to help implement this feature?
Describe the feature
When using lint-staged, the default behaviour is to pass filenames as positional arguments to linting CLIs, e.g.: your-cmd file1.ext file2.ext
AFAIK there's no way to support positional arguments in this way in citty.
So, if I want to be able to support multiple positional arguments in my Citty CLI commands, I can't do it right now (or, at least, it's unclear if there is a way to do so).
Additional information
The text was updated successfully, but these errors were encountered: