printHostingSuccess static method

void printHostingSuccess(
  1. SetupConfig config, {
  2. required bool beta,
})

Implementation

static void printHostingSuccess(SetupConfig config, {required bool beta}) {
  final String? projectId = config.firebaseProjectId;
  if (projectId == null) {
    return;
  }

  final String url = beta
      ? betaHostingUrl(projectId)
      : releaseHostingUrl(projectId);
  final String channel = beta ? 'beta' : 'release';

  print('');
  UserPrompt.printList(<String>[
    'Hosting channel: $channel',
    'Live URL: $url',
    linkLine('Hosting console', firebaseHostingConsoleUrl(projectId)),
  ]);
}