Docs
Launch GraphOS Studio
You're viewing documentation for a previous version of this software. Switch to the latest stable version.


STRUCT

Basher

public struct Basher

Bash command runner

Methods

run(command:from:)

public static func run(command: String, from url: URL?) throws -> String

Runs the given bash command as a string

  • Parameters:
    • command: The bash command to run
    • url: [optional] The URL to set as the currentDirectoryURL.
  • Returns: The result of the command.

Parameters

NameDescription
commandThe bash command to run
url[optional] The URL to set as the currentDirectoryURL.
Next
Introduction
Edit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc.

Privacy Policy

Company