UNPKG

citty-test-utils

Version:

Unified testing framework for CLI applications with auto-detecting local/cleanroom execution, vitest config integration, and simplified scenario DSL.

32 lines (26 loc) 721 B
#!/usr/bin/env node // src/commands/info/features.js - Info features verb command import { defineCommand } from 'citty' export const featuresCommand = defineCommand({ meta: { name: 'features', description: 'Show features information', }, run: async (ctx) => { const { json, verbose } = ctx.args if (verbose) { console.error('Showing features information') } const result = { command: 'features', status: 'pending', message: 'features information will be implemented', timestamp: new Date().toISOString(), } if (json) { console.log(JSON.stringify(result)) } else { console.log(`features information: ${result.status}`) } }, })