@_xtribe/cli 1.0.0-beta.15 → 1.0.0-beta.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 +20 -12
- package/package.json +1 -1
package/install-tribe.js
CHANGED
|
@@ -697,16 +697,20 @@ async function main() {
|
|
|
697
697
|
console.log('\n' + chalk.bold.green('✨ TRIBE is ready!'));
|
|
698
698
|
console.log('');
|
|
699
699
|
|
|
700
|
-
//
|
|
701
|
-
|
|
702
|
-
|
|
700
|
+
// Provide immediate access to tribe command
|
|
701
|
+
const tribePath = path.join(binDir, 'tribe');
|
|
702
|
+
|
|
703
|
+
log.info('To use tribe commands:');
|
|
704
|
+
console.log(chalk.green(` ${tribePath} # Use full path now`));
|
|
705
|
+
console.log(chalk.yellow(` source ~/.${process.env.SHELL?.includes('zsh') ? 'zshrc' : 'bashrc'} # Or update PATH`));
|
|
706
|
+
console.log(chalk.cyan(` alias tribe="${tribePath}" # Or create temporary alias`));
|
|
703
707
|
console.log(' ' + chalk.gray('or restart your terminal'));
|
|
704
708
|
console.log('');
|
|
705
709
|
|
|
706
710
|
log.info('Quick start:');
|
|
707
|
-
console.log(
|
|
708
|
-
console.log(
|
|
709
|
-
console.log(
|
|
711
|
+
console.log(` ${tribePath} # Launch interactive CLI`);
|
|
712
|
+
console.log(` ${tribePath} status # Check cluster status`);
|
|
713
|
+
console.log(` ${tribePath} create-task # Create a new task`);
|
|
710
714
|
console.log('');
|
|
711
715
|
log.info('First time? The CLI will guide you through creating your first project!');
|
|
712
716
|
} else {
|
|
@@ -723,16 +727,20 @@ async function main() {
|
|
|
723
727
|
log.success('Cluster is already running');
|
|
724
728
|
console.log('');
|
|
725
729
|
|
|
726
|
-
//
|
|
727
|
-
|
|
728
|
-
|
|
730
|
+
// Provide immediate access to tribe command
|
|
731
|
+
const tribePath = path.join(binDir, 'tribe');
|
|
732
|
+
|
|
733
|
+
log.info('To use tribe commands:');
|
|
734
|
+
console.log(chalk.green(` ${tribePath} # Use full path now`));
|
|
735
|
+
console.log(chalk.yellow(` source ~/.${process.env.SHELL?.includes('zsh') ? 'zshrc' : 'bashrc'} # Or update PATH`));
|
|
736
|
+
console.log(chalk.cyan(` alias tribe="${tribePath}" # Or create temporary alias`));
|
|
729
737
|
console.log(' ' + chalk.gray('or restart your terminal'));
|
|
730
738
|
console.log('');
|
|
731
739
|
|
|
732
740
|
log.info('Commands:');
|
|
733
|
-
console.log(
|
|
734
|
-
console.log(
|
|
735
|
-
console.log(
|
|
741
|
+
console.log(` ${tribePath} # Launch interactive CLI`);
|
|
742
|
+
console.log(` ${tribePath} status # Check status`);
|
|
743
|
+
console.log(` ${tribePath} create-task # Create a new task`);
|
|
736
744
|
}
|
|
737
745
|
} else {
|
|
738
746
|
console.log('\n' + chalk.bold('Next Steps:'));
|