renderReleaseSource function

String renderReleaseSource(
  1. ReleaseSource source
)

Implementation

String renderReleaseSource(ReleaseSource source) => switch (source) {
  GitHubReleaseSource(:final owner, :final repository, :final tag) =>
    'GitHubReleaseSource(owner: \'$owner\', repository: \'$repository\', tag: \'$tag\')',
  GitLabReleaseSource(:final projectPath, :final tag) =>
    'GitLabReleaseSource(projectPath: \'$projectPath\', tag: \'$tag\')',
};