leaseOwnerLabel function

String leaseOwnerLabel(
  1. String host
)

Human label for a lease host in banners: clifa CLI, app surfaces → Fa.app, else the raw kind.

Implementation

String leaseOwnerLabel(String host) => switch (host) {
  'cli' => 'fa CLI',
  'app' || 'macos' || 'ios' || 'android' => 'Fa.app',
  'extension' => 'Fa extension',
  final other => other,
};