-
Notifications
You must be signed in to change notification settings - Fork 369
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
chore: convert link command #6313
chore: convert link command #6313
Conversation
4e5c0ab
to
aa3f2c8
Compare
* chore: improve API command with spinner and better formatting * chore: add support for json only
aa3f2c8
to
9709b52
Compare
@@ -22,9 +22,9 @@ export const unlink = async (options: OptionValues, command: BaseCommand) => { | |||
}) | |||
|
|||
if (site) { | |||
NetlifyLog.success(`Unlinked ${site.configPath} from ${siteData ? siteData.name : siteId}`) | |||
NetlifyLog.success(`Unlinked from ${siteData ? siteData.name : siteId}`) |
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.
This did not work before my changes :D it was always undefined
*/ | ||
// @ts-expect-error TS(7006) FIXME: Parameter 'command' implicitly has an 'any' type. | ||
const linkPrompt = async (command, options) => { | ||
const linkPrompt = async (command: BaseCommand, options: OptionValues) => { |
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.
This is the big file to look at
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.
Nice! I left a few nitty suggestions around copy/styling, but they boil down to personal preference so feel free to take or leave.
@ericapisani @eduardoboucas thanks!! I implemented your feedback :) |
5d98d73
into
CP-101/design-system-clack-implementation
🎉 Thanks for submitting a pull request! 🎉
Summary
Fixes: https://linear.app/netlify/issue/CT-477/convert-link-command-to-clack
This converts the
link
command into using the new NetlifyLog. It is part of a bigger piece of work that can be seen in #6293. This is also the reason why this PR is merged into the branch CP-101/design-system-clack-implementation. It's a way in which I'm trying to keep possible failing tests, but also the review work to a minimum amount of work for those who are reviewing.It also changes a few things for
outro()
Before
I'm sorry it's a looot of screenshotting otherwise
After
CleanShot.2024-01-12.at.17.15.45.mp4
For us to review and ship your PR efficiently, please perform the following steps:
passes our tests.
A picture of a cute animal (not mandatory, but encouraged)