System

public enum System : Operation

A collection of standard system operations, including a generic ability to execute any command

  • Perform a shell command with the supplied arguments

    Declaration

    Swift

    case shell(String, arguments: [String])
  • Create a new directory

    Declaration

    Swift

    case makeDirectory(name: String)
  • Remove a directory and its contents

    Declaration

    Swift

    case removeDirectory(name: String)
  • Change the working directory in the operation context

    Declaration

    Swift

    case changeDirectory(name: String)
  • Change the working directory in the operation context

    Declaration

    Swift

    case setEnv(name: String, value: String)
  • Undocumented

    Declaration

    Swift

    public func perform(in context: OperationContext) throws