CommandMcpCall constructor

CommandMcpCall()

Implementation

CommandMcpCall() {
  argParser
    ..addOption('language', abbr: 'l', help: 'Source language.')
    ..addOption('source', abbr: 's', help: 'Inline source code.')
    ..addOption(
      'file',
      abbr: 'f',
      help: 'Read source from a file (language inferred from extension).',
    )
    ..addOption('from', help: 'Source language (apollovm.translate).')
    ..addOption('to', help: 'Target language (apollovm.translate).')
    ..addOption('function', help: 'Entry function (apollovm.execute).')
    ..addOption('class-name', help: 'Entry class (apollovm.execute).')
    ..addOption(
      'args',
      help: 'JSON array of positional arguments (apollovm.execute).',
    )
    ..addOption(
      'line',
      help: 'Zero-based cursor line (apollovm.lsp.* positional tools).',
    )
    ..addOption(
      'character',
      help: 'Zero-based cursor character (apollovm.lsp.* positional tools).',
    )
    ..addOption(
      'query',
      help: 'Symbol query (apollovm.lsp.workspaceSymbols).',
    )
    ..addOption(
      'json-args',
      help:
          'Full JSON arguments object for the tool (used by the '
          'apollovm.fs.*/search.*/code.*/git.* tools).',
    );
  addWorkspaceOptions();
}