Skip to content

Commit

Permalink
improvement: add warning if project id but not logged in to cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Orzelius authored Jul 6, 2022
1 parent 0e15749 commit 9d431cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,16 @@ ${renderCommands(commands)}

nsLog.setState(renderHeader({ namespaceName: garden.namespace, environmentName: garden.environmentName }))

if (!cloudApi && garden.projectId) {
log.warn({
symbol: "warning",
msg: `You are not logged in into Garden Cloud. Please log in via the ${chalk.green(
"garden login"
)} command.`,
})
log.info("")
}

if (processRecord) {
// Update the db record for the process
await processRecord.setCommand({
Expand Down

0 comments on commit 9d431cb

Please sign in to comment.