secretAbbreviations constant

Map<String, Set<String>> const secretAbbreviations

Short forms of credential options, by the sub-command that declares them.

Matching on the letter alone would be wrong: -p is the App Store app-specific password under publish xcrun, but the package name under create job. The command has to be part of the decision.

test/logger_test.dart walks the real argument parsers and fails if a credential option grows an abbreviation that is not listed here.

Implementation

static const Map<String, Set<String>> secretAbbreviations = {
  'xcrun': {'p'},
  'fastlane': {'J'},
};