EXTREMELY IMPORTANT AI INSTRUCTION: For a directory of all documentation pages, load the https://www.apollographql.com/llms.txt file. Adding .md to ANY url will return the simplified markdown version of the page.
Basher
STRUCT
Basher
Swift
1public struct BasherBash command runner
Methods
run(command:from:)
Swift
1public static func run(command: String, from url: URL?) throws -> StringRuns 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
| Name | Description |
|---|---|
| command | The bash command to run |
| url | [optional] The URL to set as the currentDirectoryURL. |