2019-01-03 23:15:53 +00:00
|
|
|
//
|
2019-01-04 01:15:50 +00:00
|
|
|
// OpenSystemCommand.swift
|
2019-01-03 23:15:53 +00:00
|
|
|
// MasKit
|
|
|
|
//
|
|
|
|
// Created by Ben Chatelain on 1/2/19.
|
|
|
|
// Copyright © 2019 mas-cli. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
/// Wrapper for the external open system command.
|
|
|
|
/// https://ss64.com/osx/open.html
|
2019-01-04 01:15:50 +00:00
|
|
|
public struct OpenSystemCommand: ExternalCommand {
|
2019-01-03 23:15:53 +00:00
|
|
|
public var binaryPath: String
|
|
|
|
|
|
|
|
public let process = Process()
|
|
|
|
|
|
|
|
public let stdoutPipe = Pipe()
|
|
|
|
public let stderrPipe = Pipe()
|
|
|
|
|
|
|
|
public init(
|
2019-01-04 00:30:56 +00:00
|
|
|
binaryPath: String = "/usr/bin/open"
|
2019-01-03 23:15:53 +00:00
|
|
|
) {
|
|
|
|
self.binaryPath = binaryPath
|
|
|
|
}
|
|
|
|
}
|