Skip to content

Commit 27bafa9

Browse files
cursoragentabnegate
andcommitted
Remove platform-specific text from update command and version check
Co-authored-by: jakeb994 <[email protected]>
1 parent 844b1a7 commit 27bafa9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/cli/index.js.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ inquirer.registerPrompt('search-list', require('inquirer-search-list'));
3232
/**
3333
* Check for updates and show version information
3434
*/
35-
async function checkVersionAndUpdate() {
35+
async function checkVersion() {
3636
process.stdout.write(chalk.bold(`{{ language.params.executableName|caseLower }} version ${version}`) + '\n');
3737

3838
try {
@@ -58,7 +58,7 @@ async function checkVersionAndUpdate() {
5858
// Intercept version flag before Commander.js processes it
5959
if (process.argv.includes('-v') || process.argv.includes('--version')) {
6060
(async () => {
61-
await checkVersionAndUpdate();
61+
await checkVersion();
6262
process.exit(0);
6363
})();
6464
return;

templates/cli/lib/commands/update.js.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const showManualInstructions = (latestVersion) => {
127127
console.log(` npm install -g {{ language.params.npmPackage|caseDash }}@latest`);
128128
console.log("");
129129

130-
log(`${chalk.bold("Option 2: Homebrew (macOS)")}`);
130+
log(`${chalk.bold("Option 2: Homebrew")}`);
131131
console.log(` brew upgrade {{ language.params.executableName|caseLower }}`);
132132
console.log("");
133133

@@ -141,7 +141,7 @@ const showManualInstructions = (latestVersion) => {
141141
const chooseUpdateMethod = async (latestVersion) => {
142142
const choices = [
143143
{ name: 'NPM', value: 'npm' },
144-
{ name: 'Homebrew (macOS)', value: 'homebrew' },
144+
{ name: 'Homebrew', value: 'homebrew' },
145145
{ name: 'Show manual instructions', value: 'manual' }
146146
];
147147

0 commit comments

Comments
 (0)