-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
test(cli): Add unit tests for the add command #1292
base: main
Are you sure you want to change the base?
Conversation
@K-Sato1995 is attempting to deploy a commit to the shadcn-pro Team on Vercel. A member of the Team first needs to authorize it. |
process.cwd() | ||
) | ||
.option("-p, --path <path>", "the path to add the component to.") | ||
.action(runAdd) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't touch the core logic at all. Just extracted the core functionality to the runAdd
and calling the func here
Awesome. I'll probably do same for the other command. Let me label this and get back to it. |
f027744
to
9aacfa7
Compare
@shadcn |
Overview
runAdd
.runAdd
).