Skip to content

Commit

Permalink
refactor(main.ts): replace npm:chalk with @std/fmt/colors
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakovlenko committed Oct 25, 2024
1 parent adbd980 commit 7dc0f35
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 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 @@ -18,13 +18,13 @@ 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,
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)),
};

// Update startLoading with chalk
Expand Down

0 comments on commit 7dc0f35

Please sign in to comment.