PlaygroundBook
public struct PlaygroundBook
The PlaygroundBook
-
The name of the PlaygroundBook
Declaration
Swift
public let name: String
-
The Content
Declaration
Swift
public let content: Content
-
The FileManager
Declaration
Swift
public let fileManager: FileManager
-
Designated Initializer
Declaration
Swift
public init( name: String? = nil, content: Content = .default, fileManager: FileManager = .default )
Parameters
name
The optional name of the PlaygroundBook. When passing nil the default name is used. Default value
nil
content
The Content. Default value
.default
fileManager
The FileManager. Default value
.default
-
The PlaygroundBook Content
See moreDeclaration
Swift
enum Content : Equatable, Hashable
-
Generate PlaygroundBook in iCloud Directory
Declaration
Swift
func generate() throws
-
The default Playground Page File Name
Declaration
Swift
var defaultPlaygroundPageFileName: String { get }
-
The PlaygroundBook Template File Path
Declaration
Swift
var templateFilePath: Path { get }
-
The iCloud File Path
Declaration
Swift
var iCloudPath: Path { get }
-
The destination File Path
Declaration
Swift
var destinationFilePath: Path { get }
-
The Playground Page File Path
Declaration
Swift
var playgroundPageFilePath: Path { get }
-
The Manifest File Path
Declaration
Swift
var manifestFilePath: Path { get }
-
The main Swift File Path
Declaration
Swift
var mainSwiftFilePath: Path { get }
-
Open PlaygroundBook
Declaration
Swift
func open(executable: (String) throws -> Void) throws
Parameters
executable
The executable to execute a bash command