Skip to content

Commit

Permalink
refactor: following LogLevelMap
Browse files Browse the repository at this point in the history
  • Loading branch information
snowyu committed Sep 19, 2024
1 parent 985c95b commit 9af2d75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ai-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import path from 'path'
import { defaultsDeep } from 'lodash-es'
import {Command, Flags} from '@oclif/core'
import { parseJsJson, parseObjectArgumentInfos } from '@isdk/ai-tool'
import { LogLevelMap } from '@isdk/ai-tool-agent'
import { DEFAULT_CONFIG_NAME, loadAIConfig, loadConfigFile } from './load-config'

// const CONFIG_BASE_NAME = '.ai'
Expand Down Expand Up @@ -139,7 +140,7 @@ export const AICommonFlags = {
logLevel: Flags.string({
char: 'l', description: 'the log level',
aliases: ['loglevel', 'log-level'],
options: ['silence', 'fatal', 'error', 'warn', 'info', 'verbose', 'debug', 'trace'],
options: Object.keys(LogLevelMap),
}),
interactive: Flags.boolean({char: 'i', description: 'interactive mode', allowNo: true}),
histories: Flags.directory({description: 'the chat histories folder to record', exists: true}),
Expand Down

0 comments on commit 9af2d75

Please # to comment.