baseSpec top-level property

FigSubcommand baseSpec
final

Implementation

final FigSubcommand baseSpec = FigSubcommand(
  name: "sdc",
  description: "\"setup dominic's computer\" cli tool",
  subcommands: [
    FigSubcommand(
      name: "help",
      description: "Display help for command",
      priority: 49,
      args: [
        FigArg(
          name: "command",
          isOptional: true,
          template: "help",
        ),
      ],
    ),
  ],
  options: [
    FigOption(
      name: ["-V", "--version"],
      description: "Output the version number",
    ),
    FigOption(
      name: ["-f", "--force"],
      description: "Bypass checks",
    ),
    FigOption(
      name: "--no-end-clear",
      description:
          "Skip clearing the console at the end so that output can be viewed",
    ),
    FigOption(
      name: ["-h", "--help"],
      description: "Display help for command",
      priority: 49,
    ),
  ],
);