Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Jul 5, 2024
1 parent e72b963 commit 8072035
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugins/color.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { colors, getBorderCharacters, table } from '../deps.ts'
import type { CLI } from '../spektr.ts'
import { Command, Option, Plugin } from '../types.ts'
import { Command, Plugin } from '../types.ts'

export const colorPlugin: Plugin = (cli) => {
const helpFn = <
T extends readonly Option[] = readonly Option[],
>(cmd: Command<T>) => {
const helpFn = (cmd: Command) => {
const layout: string[][] = []
let msg = `${colors.bold('Usage')}: ${cmd.name} [args]\n`
cmd.options.forEach((option) => {
Expand Down

0 comments on commit 8072035

Please sign in to comment.