Skip to content

Commit

Permalink
chore: fix log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
eysi09 committed Feb 9, 2020
1 parent 46503cc commit 6c34af4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion garden-service/src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { getHotReloadServiceNames, validateHotReloadServiceNames } from "./helpe
import { startServer, GardenServer } from "../server/server"
import { DeployTask } from "../tasks/deploy"
import { naturalList } from "../util/string"
import chalk = require("chalk")

const deployArgs = {
services: new StringsParameter({
Expand Down Expand Up @@ -109,7 +110,9 @@ export class DeployCommand extends Command<Args, Opts> {
const disabled = services.filter((s) => s.disabled).map((s) => s.name)

if (disabled.length > 0) {
log.info({ symbol: "info", msg: `Services ${naturalList(disabled)} are disabled` })
const bold = disabled.map((d) => chalk.bold(d))
const msg = disabled.length === 1 ? `Service ${bold} is disabled` : `Services ${naturalList(bold)} are disabled`
log.info({ symbol: "info", msg: chalk.white(msg) })
}

services = services.filter((s) => !s.disabled)
Expand Down
2 changes: 1 addition & 1 deletion garden-service/src/tasks/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class DeployTask extends BaseTask {
if (!this.force && versionString === status.version && status.state === "ready") {
// already deployed and ready
log.setSuccess({
msg: `Version ${versionString} already deployed`,
msg: chalk.green("Already deployed"),
append: true,
})
} else {
Expand Down

0 comments on commit 6c34af4

Please sign in to comment.