This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pod-install] show alternative message in managed projects (#4566)
Co-authored-by: Brent Vatne <brentvatne@gmail.com>
- Loading branch information
1 parent
785cf12
commit 1e8769c
Showing
4 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import chalk from 'chalk'; | ||
import terminalLink from 'terminal-link'; | ||
|
||
/** | ||
* When linking isn't available, format the learn more link better. | ||
* @param url | ||
*/ | ||
export function learnMore(url: string): string { | ||
return terminalLink(chalk.underline('Learn more.'), url, { | ||
fallback: (_, url) => `Learn more: ${chalk.underline(url)}`, | ||
}); | ||
} |