Skip to content

Commit

Permalink
only incude edit message if it has a workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
kla committed Oct 9, 2024
1 parent 798f3a8 commit 67ea3b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ export default class App {
installedMessage(): string {
const sh = chalk.blue(`'stax sh ${this.name}'`)
const edit = chalk.blue(`'stax edit ${this.name}'`)
return `${icons.info} ${this.name} installed. You can open a shell to its container with ${sh} or open it in vscode, if installed, with ${edit}`
let message = `${icons.info} ${this.name} installed. You can open a shell to its container with ${sh} (if it has a shell)`
if (this.config.workspace) message += ` or open it in vscode with ${edit}`
return message
}
}

0 comments on commit 67ea3b9

Please sign in to comment.