planLabel function

String planLabel(
  1. String tier
)

The tier label shown to a developer — whoami and apps list (#30) both print this, so it lives once rather than being re-typed per command.

Implementation

String planLabel(String tier) {
  switch (tier) {
    case 'pro':
      return 'First Class';
    default:
      return 'Economy (free)';
  }
}