trexSpec top-level property
Implementation
final FigSpec trexSpec = FigSpec(
name: 'trex',
description: 'Advanced package management for deno, based on import_map.json',
subcommands: [
FigSubcommand(
name: ['i', 'install'],
description: 'Install a package',
options: [mapOption, nestOption, pkgOption],
),
FigSubcommand(
name: ['delete'],
description: 'Delete a package',
args: [
FigArg(
name: 'package name',
generators: [dependenciesGenerator],
filterStrategy: 'fuzzy',
),
],
),
FigSubcommand(
name: ['upgrade'],
description: 'Upgrade trex',
options: [
FigOption(
name: ['--canary'],
description: 'Install from dev branch',
),
],
),
FigSubcommand(
name: ['tree'],
description: 'View dependency tree',
),
FigSubcommand(
name: ['run'],
description: 'Run a script alias in a file run.json',
options: [
FigOption(
name: ['-w', '--watch'],
description: 'Use reboot script alias protocol (rsap)',
),
FigOption(
name: ['-wv'],
description: 'Verbose output in --watch mode (rsap)',
),
],
args: [
FigArg(
name: 'script alias',
generators: [scriptsGenerator],
),
],
),
FigSubcommand(
name: ['purge'],
description: 'Remove a package or url from cache',
args: [
FigArg(
name: 'package | url',
generators: [dependenciesGenerator],
filterStrategy: 'fuzzy',
),
],
),
FigSubcommand(
name: ['ls'],
description: 'Shows the list of installed packages',
),
FigSubcommand(
name: ['exec'],
description: 'Execute a cli tool with out install then',
options: [
FigOption(
name: ['--perms'],
description: 'Specify cli permisions',
),
],
args: [FigArg(name: 'cli tool')],
),
FigSubcommand(
name: ['check'],
description: 'Check deno.land [std/x] dependencies updates',
options: [
FigOption(
name: ['-f', '--fix'],
description: 'Update outdated dependencies',
),
],
),
],
options: [
FigOption(
name: ['-h', '--help'],
description: 'Print help info',
isPersistent: true,
),
versionOption,
customOption,
],
);