mailsySpec top-level property

FigSpec mailsySpec
final

Completion spec for mailsy CLI

Implementation

final FigSpec mailsySpec = FigSpec(
  name: 'mailsy',
  description: '⚡️ Quickly generate a disposable email straight from terminal',
  subcommands: [

    Subcommand(
      name: 'g',
      description: 'Generate a new email'
    ),
    Subcommand(
      name: 'm',
      description: 'Fetch messages from the inbox'
    ),
    Subcommand(
      name: 'd',
      description: 'Delete account'
    ),
    Subcommand(
      name: 'me',
      description: 'Show details of the account'
    ),
    Subcommand(
      name: 'help',
      description: 'Get help for a command',
      args: [
        Arg(
        name: 'command',
        isOptional: true,
        template: 'hel'
      )
      ]
    )
  ],
  options: [

    Option(
      name: ['-v', '--version'],
      description: 'Output the current version'
    ),
    Option(
      name: ['-h', '--help'],
      description: 'Display help for command',
      priority: 49,
      isPersistent: true
    )
  ]
);