Skip to content

Commit

Permalink
feat: add colour to route subcommand output
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommypop2 committed Jan 23, 2025
1 parent e20fa77 commit 2cfc25b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/full-solid/src/start/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { createRoute } from "@solid-cli/utils";
import { defineCommand } from "citty";
import * as p from "@clack/prompts";
import { green } from "picocolors";
export const startCommands = defineCommand({
meta: { description: "Start-specific commands" }, subCommands: {
route: defineCommand({
Expand All @@ -13,7 +14,7 @@ export const startCommands = defineCommand({
},
async run({ args: { path } }) {
await createRoute(path as string);
p.log.success(`Route ${path} successfully created!`)
p.log.success(`Route ${green(path as string)} successfully created!`)
},
})
}
Expand Down

0 comments on commit 2cfc25b

Please sign in to comment.