@_xtribe/cli 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/install-tribe.js +11 -2
- package/package.json +1 -1
package/install-tribe.js
CHANGED
|
@@ -1626,8 +1626,14 @@ async function main() {
|
|
|
1626
1626
|
log.success('Cluster is already running');
|
|
1627
1627
|
console.log('');
|
|
1628
1628
|
|
|
1629
|
-
//
|
|
1630
|
-
if (global.
|
|
1629
|
+
// Check if PATH was automatically configured
|
|
1630
|
+
if (global.pathSetupComplete) {
|
|
1631
|
+
log.info('PATH configured automatically!');
|
|
1632
|
+
console.log('');
|
|
1633
|
+
console.log(chalk.bold('TRIBE commands are available:'));
|
|
1634
|
+
console.log(chalk.yellow(' Current terminal: ') + chalk.green('source ~/.tribe/tribe-env.sh'));
|
|
1635
|
+
console.log(chalk.yellow(' New terminals: ') + chalk.green('tribe (works automatically)'));
|
|
1636
|
+
} else if (global.envScriptCreated) {
|
|
1631
1637
|
log.info('TRIBE command is installed!');
|
|
1632
1638
|
console.log('');
|
|
1633
1639
|
console.log(chalk.bold('To use "tribe" command from anywhere:'));
|
|
@@ -1681,6 +1687,9 @@ async function main() {
|
|
|
1681
1687
|
log.info('Restart your shell or run: source ~/.zshrc');
|
|
1682
1688
|
log.info('Then run: tribe start');
|
|
1683
1689
|
}
|
|
1690
|
+
|
|
1691
|
+
// Exit cleanly
|
|
1692
|
+
process.exit(0);
|
|
1684
1693
|
}
|
|
1685
1694
|
|
|
1686
1695
|
// Handle fetch polyfill for older Node versions
|