showDeployment static method
Implementation
static Future<void> showDeployment(
final Client cloudApiClient, {
required final CommandLogger logger,
required final String baseCommand,
required final String projectId,
required final bool wait,
required final bool overallStatus,
required final bool inUtc,
final String? deploymentArg,
}) async {
try {
final attemptId = await _getDeployAttemptId(
cloudApiClient,
baseCommand,
projectId,
deploymentArg,
);
if (wait && !overallStatus) {
await StatusCommands.tailDeploymentStatus(
cloudApiClient,
logger: logger,
baseCommand: baseCommand,
cloudCapsuleId: projectId,
attemptId: attemptId,
inUtc: inUtc,
);
return;
}
await StatusCommands.showDeploymentStatus(
cloudApiClient,
logger: logger,
cloudCapsuleId: projectId,
attemptId: attemptId,
inUtc: inUtc,
outputOverallStatus: overallStatus,
);
} on Exception catch (e, s) {
throw FailureException.nested(e, s, 'Failed to get deployment status');
}
}