parseSymbolsCommand function

void parseSymbolsCommand(
  1. ArgResults command,
  2. bool verbose
)

Implementation

void parseSymbolsCommand(ArgResults command, bool verbose) {
  if (command.wasParsed('help')) {
    print(
        'Usage: raygun-cli $kSymbolsCommand (upload|list|delete) <arguments>');
    print(buildParserSymbols().usage);
    exit(0);
  }
  if (!command.wasParsed('app-id') || !command.wasParsed('token')) {
    print('Missing mandatory arguments');
    print(buildParserSymbols().usage);
    exit(2);
  }
  _run(
    command: command,
    appId: command['app-id'],
    token: command['token'],
  ).then((result) {
    if (result) {
      exit(0);
    } else {
      exit(2);
    }
  }).catchError((e) {
    print('Error: $e');
    exit(2);
  });
}