0001    //
0002    //  RunSettings.swift
0003    //  RunSettings
0004    //
0005    //  Created by Omar Abdelhafith on 05/11/2015.
0006    //  Copyright © 2015 Omar Abdelhafith. All rights reserved.
0007    //
0008    
0009    
0010    /// Settings to costumize the run function
0011    public class RunSettings
Runner.swift:15
        let initalSettings = RunSettings()
Runner.swift:25
        let settings = RunSettings()
Runner.swift:29
    class func run(command: String, settings: (RunSettings -> Void)) -> RunResults {
Runner.swift:30
        let initalSettings = RunSettings()
Runner.swift:36
    class func run(command: String, args: [String], settings: (RunSettings -> Void)) -> RunResults {
Runner.swift:37
        let initalSettings = RunSettings()
Runner.swift:44
        let initalSettings = RunSettings()
Runner.swift:49
    class func run(command: String, args: [String], settings: RunSettings) -> RunResults {
Runner.swift:94
    private class func echoCommand(command: [String], settings: RunSettings) {
Runner.swift:100
    private class func echoResult(result: RunResults, settings: RunSettings) {
ShortHandRunner.swift:45
public func run(command: String, settingsBlock: (RunSettings -> Void)) -> RunResults {
ShortHandRunner.swift:59
public func run(command: String, args: [String], settings: (RunSettings -> Void)) -> RunResults {
{ 0012 0013 /// If set to true, the command wont be run on the system, the stdout will contain the command executed 0014 public var dryRun
Runner.swift:57
        if settings.dryRun {
= false 0015 0016 /// Which parts of the command to be echoed during execution 0017 public var echo
Runner.swift:45
        initalSettings.echo = echo
Runner.swift:95
        if settings.echo.contains(.Command) {
Runner.swift:101
        if settings.echo.contains(.Stdout) {
Runner.swift:105
        if settings.echo.contains(.Stderr) {
= EchoSettings.None 0018 0019 /// Run the command in interactive mode; output wont be captured 0020 public var interactive
Runner.swift:16
        initalSettings.interactive = true
Runner.swift:59
        } else if settings.interactive {
= false 0021 } 0022 0023 0024 /// Echo settings 0025 public struct EchoSettings
Runner.swift:43
    class func run(command: String, echo: EchoSettings) -> RunResults {
RunnerSettings.swift:17
    public var echo = EchoSettings.None
RunnerSettings.swift:34
    public static var None = EchoSettings(rawValue: 0)
RunnerSettings.swift:37
    public static let Stdout  = EchoSettings(rawValue: 1 << 0)
RunnerSettings.swift:40
    public static let Stderr  = EchoSettings(rawValue: 1 << 1)
RunnerSettings.swift:43
    public static let Command  = EchoSettings(rawValue: 1 << 2)
ShortHandRunner.swift:72
func run(command: String, echo: EchoSettings) -> RunResults {
: OptionSetType { 0026 0027 public let rawValue
RunnerSettings.swift:30
        self.rawValue = rawValue
: Int 0028 0029 public init
RunnerSettings.swift:34
    public static var None = EchoSettings(rawValue: 0)
RunnerSettings.swift:37
    public static let Stdout  = EchoSettings(rawValue: 1 << 0)
RunnerSettings.swift:40
    public static let Stderr  = EchoSettings(rawValue: 1 << 1)
RunnerSettings.swift:43
    public static let Command  = EchoSettings(rawValue: 1 << 2)
(rawValue: Int) { 0030 self.rawValue = rawValue 0031 } 0032 0033 /// Dont echo anything, this is the default settings 0034 public static var None
RunnerSettings.swift:17
    public var echo = EchoSettings.None
= EchoSettings(rawValue: 0) 0035 0036 /// Echo the stdout from the run command to the terminal 0037 public static let Stdout
Runner.swift:101
        if settings.echo.contains(.Stdout) {
= EchoSettings(rawValue: 1 << 0) 0038 0039 /// Echo the stderr from the run command to the terminal 0040 public static let Stderr
Runner.swift:105
        if settings.echo.contains(.Stderr) {
= EchoSettings(rawValue: 1 << 1) 0041 0042 /// Echo the command executed to the terminal 0043 public static let Command
Runner.swift:95
        if settings.echo.contains(.Command) {
= EchoSettings(rawValue: 1 << 2) 0044 }