tsxSpec top-level property
Completion spec for tsx CLI
Implementation
final FigSpec tsxSpec = FigSpec(
name: 'tsx',
description: 'Run TypeScript file using tsx',
subcommands: [
Subcommand(
name: 'watch',
description: 'Run the script and watch for changes'
)
],
options: [
Option(
name: ['--help', '-h'],
description: 'Show help for tsx',
isPersistent: true
),
Option(
name: '--no-cache',
description: 'Disable caching',
isPersistent: true
),
Option(
name: '--clear-screen',
description: 'Disable clearing the screen on rerun',
isPersistent: true,
insertValue: '--clear-screen=false',
dependsOn: ['watch']
),
Option(
name: ['-v', '--version'],
description: 'Show version'
),
Option(
name: '--tsconfig',
description: 'Custom tsconfig.json path',
args: [
Arg(
name: 'tsconfig.json path'
)
]
)
]
);