Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple in ArgType #88

Closed
1 task done
peterroe opened this issue Oct 12, 2023 · 1 comment
Closed
1 task done

Support multiple in ArgType #88

peterroe opened this issue Oct 12, 2023 · 1 comment

Comments

@peterroe
Copy link
Contributor

Describe the feature

Feature to solve: #80

export default defineCommand({
  meta: {
    name: "lint",
    description: "A test command",
  },
  args: {
    files: {
      type: "multiple",
      description: "Files need be lint",
    },
  },
  run({ args }) {
	// lint fileA.ts fileB.ts
	console.log(args.files) //=> ['fileA.ts', 'fileB.ts]
  },
});

Additional information

  • Would you be willing to help implement this feature?
@nozomuikuta
Copy link
Member

@peterroe

It looks like a duplicate of #80, so let me close this issue.

If you think the goal is different, would you reopen this issue and add explanation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants