Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion clients/js/packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const questions: Question[] = params.map(name => ({ name, type: 'text' }));
// Filter questions based on the command
function getQuestionsForCommand(command: string): Question[] {
const commonQuestions = questions.filter(q => q.name !== 'config');
if (['start', 'deploy', 'start-ports', 'wait-for-pods'].includes(command)) {
if (['start', 'deploy', 'start-ports', 'wait-for-pods', 'check'].includes(command)) {
return questions; // Include all questions, including config
} else {
return commonQuestions; // Exclude config
Expand Down Expand Up @@ -103,6 +103,9 @@ async function main() {
case 'undeploy':
client.deleteHelm();
break;
case 'check':
client.check();
break;
default:
console.log(`Unknown command: ${command}`);
displayUsage();
Expand Down
6 changes: 6 additions & 0 deletions clients/js/packages/client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,4 +595,10 @@ export class StarshipClient implements StarshipClientI {
console.log(pid);
});
}

public check(): void {
this.checkDependencies();
this.exec(['helm', 'version']);
this.exec(['kubectl', 'version', '--short']);
}
}