@_xtribe/cli 2.2.8 → 2.2.10
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 +25 -3
- package/package.json +1 -1
package/install-tribe.js
CHANGED
|
@@ -213,12 +213,34 @@ async function main() {
|
|
|
213
213
|
|
|
214
214
|
// Setup PATH
|
|
215
215
|
spinner.text = 'Setting up environment...';
|
|
216
|
-
|
|
216
|
+
try {
|
|
217
|
+
await setupPathQuiet();
|
|
218
|
+
} catch (error) {
|
|
219
|
+
// PATH setup had issues but continue with installation
|
|
220
|
+
console.log(chalk.yellow('⚠️ PATH setup had warnings, but installation completed'));
|
|
221
|
+
}
|
|
217
222
|
|
|
218
223
|
spinner.succeed('Ready!');
|
|
219
224
|
|
|
220
|
-
//
|
|
221
|
-
|
|
225
|
+
// Test if tribe command works immediately
|
|
226
|
+
let commandWorks = false;
|
|
227
|
+
try {
|
|
228
|
+
execSync('which tribe', { stdio: 'ignore', timeout: 2000 });
|
|
229
|
+
commandWorks = true;
|
|
230
|
+
} catch (error) {
|
|
231
|
+
commandWorks = false;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// Show appropriate completion message
|
|
235
|
+
if (commandWorks) {
|
|
236
|
+
console.log(chalk.green('\n✅ TRIBE CLI is ready to use!'));
|
|
237
|
+
console.log('Type ' + chalk.cyan.bold('tribe') + ' to get started');
|
|
238
|
+
} else {
|
|
239
|
+
console.log(chalk.yellow('\n⚠️ TRIBE CLI installed successfully!'));
|
|
240
|
+
console.log(chalk.blue('To use the tribe command, please restart your terminal'));
|
|
241
|
+
console.log(chalk.gray('or run: ') + chalk.cyan.bold('source ~/.tribe/tribe-env.sh'));
|
|
242
|
+
console.log(chalk.gray('\nThen type: ') + chalk.cyan.bold('tribe') + chalk.gray(' to get started'));
|
|
243
|
+
}
|
|
222
244
|
|
|
223
245
|
} catch (error) {
|
|
224
246
|
spinner.fail('Installation failed');
|