fastlane-plugin-changelog icon indicating copy to clipboard operation
fastlane-plugin-changelog copied to clipboard

[Fastlane.swift] No return value

Open ammerzon opened this issue 2 years ago • 0 comments

When installing the plugin in a Fastlane.swift project no return values are provided.

public func emojifyChangelog() {
let args: [RubyCommand.Argument] = []
let command = RubyCommand(commandID: "", methodName: "emojify_changelog", className: nil, args: args)
  _ = runner.executeCommand(command)
}

public func readChangelog(changelogPath: String = "./CHANGELOG.md",
                          sectionIdentifier: String = "[Unreleased]",
                          excludedMarkdownElements: [String] = ["###"]) {
let changelogPathArg = RubyCommand.Argument(name: "changelog_path", value: changelogPath, type: nil)
let sectionIdentifierArg = RubyCommand.Argument(name: "section_identifier", value: sectionIdentifier, type: nil)
let excludedMarkdownElementsArg = RubyCommand.Argument(name: "excluded_markdown_elements", value: excludedMarkdownElements, type: nil)
let array: [RubyCommand.Argument?] = [changelogPathArg,
sectionIdentifierArg,
excludedMarkdownElementsArg]
let args: [RubyCommand.Argument] = array
.filter { $0?.value != nil }
.compactMap { $0 }
let command = RubyCommand(commandID: "", methodName: "read_changelog", className: nil, args: args)
  _ = runner.executeCommand(command)
}

ammerzon avatar May 03 '22 13:05 ammerzon