Files
cli-spec-generator/test/fixtures.ts

54 lines
1.0 KiB
TypeScript

import { CLISpec, Option, Command, Argument, Example } from '../src/types/spec.js';
const testSpec: CLISpec = {
name: 'test-cli',
version: '1.0.0',
description: 'A test CLI tool',
author: 'Test Author',
commands: [
{
name: 'start',
description: 'Start the service',
options: [
{
name: 'port',
short: 'p',
description: 'Port number',
type: 'number',
default: 8080,
},
],
arguments: [
{
name: 'service',
description: 'Service name',
required: true,
},
],
},
{
name: 'stop',
description: 'Stop the service',
options: [
{
name: 'force',
description: 'Force stop',
type: 'boolean',
default: false,
},
],
},
],
globalOptions: [
{
name: 'verbose',
short: 'v',
description: 'Enable verbose output',
type: 'boolean',
default: false,
},
],
};
export { testSpec };