whichSpec top-level property
Implementation
final FigSpec whichSpec = FigSpec(
name: 'which',
description: "Locate a program in the user's PATH",
args: [
FigArg(
name: 'names',
isVariadic: true,
generators: [programGenerator],
filterStrategy: 'fuzzy',
suggestCurrentToken: true,
),
],
options: [
FigOption(
name: ['-s'],
description:
'No output, return 0 if all the executables are found, 1 if not',
),
FigOption(
name: ['-a'],
description:
'List all instances of executables found, instead of just the first',
),
],
);