Sha256: c48fcc606d50d1c91c86457aa52f77b8a998c6301aef51c882410d46cb680220

Contents?: true

Size: 944 Bytes

Versions: 26

Compression:

Stored size: 944 Bytes

Contents

// RubyCommandable.swift
// Copyright (c) 2022 FastlaneTools

//
//  ** NOTE **
//  This file is provided by fastlane and WILL be overwritten in future updates
//  If you want to add extra functionality to this project, create a new file in a
//  new group so that it won't be marked for upgrade
//

import Foundation

enum CommandType {
    case action
    case control

    var token: String {
        switch self {
        case .action:
            return "action"
        case .control:
            return "control"
        }
    }
}

protocol RubyCommandable {
    var type: CommandType { get }
    var commandJson: String { get }
    var id: String { get }
}

extension RubyCommandable {
    var json: String {
        return """
        { "commandType": "\(type.token)", "command": \(commandJson) }
        """
    }
}

// Please don't remove the lines below
// They are used to detect outdated files
// FastlaneRunnerAPIVersion [0.9.2]

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
fastlane-2.211.0 fastlane/swift/RubyCommandable.swift
fastlane-2.210.1 fastlane/swift/RubyCommandable.swift
fastlane-2.210.0 fastlane/swift/RubyCommandable.swift
fastlane-2.209.1 fastlane/swift/RubyCommandable.swift
fastlane-2.209.0 fastlane/swift/RubyCommandable.swift
fastlane-2.208.0 fastlane/swift/RubyCommandable.swift
fastlane-2.207.0 fastlane/swift/RubyCommandable.swift
fastlane-2.206.2 fastlane/swift/RubyCommandable.swift
fastlane-2.206.1 fastlane/swift/RubyCommandable.swift
fastlane-2.206.0 fastlane/swift/RubyCommandable.swift
fastlane-2.205.2 fastlane/swift/RubyCommandable.swift
fastlane-2.205.1 fastlane/swift/RubyCommandable.swift
fastlane-2.205.0 fastlane/swift/RubyCommandable.swift
fastlane-2.204.3 fastlane/swift/RubyCommandable.swift
fastlane-2.204.2 fastlane/swift/RubyCommandable.swift
fastlane-2.204.1 fastlane/swift/RubyCommandable.swift
fastlane-2.204.0 fastlane/swift/RubyCommandable.swift
fastlane-2.203.0 fastlane/swift/RubyCommandable.swift
fastlane-2.202.0 fastlane/swift/RubyCommandable.swift
fastlane-2.201.2 fastlane/swift/RubyCommandable.swift