Skip to content

Commit

Permalink
Merge pull request #3 from ayakovlenko/replace-chalk
Browse files Browse the repository at this point in the history
refactor(main.ts): replace `npm:chalk` with `@std/fmt/colors`
  • Loading branch information
sidedwards authored Oct 27, 2024
2 parents ef1166a + 747acdf commit 61a92f4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Anthropic from "npm:@anthropic-ai/sdk";
import { ensureDir } from "https://deno.land/std/fs/ensure_dir.ts";
import { join } from "https://deno.land/std/path/mod.ts";
import { parse } from "https://deno.land/std/flags/mod.ts";
import chalk from "npm:chalk@5";
import * as colors from "jsr:@std/fmt/colors";

// Export enum first
export enum CommitFormat {
Expand All @@ -19,14 +19,14 @@ export enum CommitFormat {

// Then define all other functions and constants
const COLORS = {
success: chalk.green,
warning: chalk.yellow,
error: chalk.red,
info: chalk.blue,
dim: chalk.dim,
bold: chalk.bold,
header: chalk.cyan.bold,
action: chalk.yellow.bold, // Add this for action keys
success: colors.green,
warning: colors.yellow,
error: colors.red,
info: colors.blue,
dim: colors.dim,
bold: colors.bold,
header: (s: string) => colors.bold(colors.cyan(s)),
action: (s: string) => colors.bold(colors.yellow(s)),
};

// Update startLoading with chalk
Expand Down

0 comments on commit 61a92f4

Please sign in to comment.