/ commands / logout / index.ts
index.ts
 1  import type { Command } from '../../commands.js'
 2  import { isEnvTruthy } from '../../utils/envUtils.js'
 3  
 4  export default {
 5    type: 'local-jsx',
 6    name: 'logout',
 7    description: 'Sign out from your Anthropic account',
 8    isEnabled: () => !isEnvTruthy(process.env.DISABLE_LOGOUT_COMMAND),
 9    load: () => import('./logout.js'),
10  } satisfies Command