Documentation ¶
Overview ¶
Package swiftbin provides utitilty functions for executing Swift commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindSwiftBinPath ¶
FindSwiftBinPath returns the path to the Swift executable.
func SwiftBinBase ¶
func SwiftBinBase() string
SwiftBinBase returns the base name for the Swift executable.
Types ¶
type Executor ¶
type Executor interface { InitPackage(dir, name, pkgType string) error DumpPackage(dir, buildDir string) ([]byte, error) DescribePackage(dir string) ([]byte, error) }
An Executor represents commands provided by the Swift binary.
type SwiftBin ¶
type SwiftBin struct {
BinPath string
}
A SwiftBin implements that actual calls to the Swift binary.
func NewSwiftBin ¶
func (*SwiftBin) DescribePackage ¶
DescribePackage returns the `swift package describe` JSON for a Swift package.
func (*SwiftBin) DumpPackage ¶
DumpPackage returns the `swift package dump-package` JSON for a Swift package.
func (*SwiftBin) InitPackage ¶
InitPackage initializes a new Swift package in the specified directory.
Click to show internal directories.
Click to hide internal directories.