Documentation ¶
Overview ¶
Package local provides access to local assets for the CLI
Index ¶
- Constants
- func GetInertiaConfig() (*cfg.Inertia, error)
- func GetProject(path string) (*cfg.Project, error)
- func InertiaConfigPath() string
- func InertiaDir() string
- func Init() (*cfg.Inertia, error)
- func InitProject(path, name, host string, defaultProfile cfg.Profile) error
- func RemoveRemote(name string) error
- func SaveKey(keyMaterial string, path string) error
- func SaveRemote(remote *cfg.Remote) error
- func Write(path string, data interface{}, writers ...io.Writer) error
Constants ¶
View Source
const (
// EnvSSHPassphrase is the key used to fetch PEM key passphrases
EnvSSHPassphrase = "IDENTITY_PASSPHRASE"
)
Variables ¶
This section is empty.
Functions ¶
func GetInertiaConfig ¶
GetInertiaConfig retrieves global Inertia configuration
func GetProject ¶ added in v0.6.0
GetProject retrieves the Inertia project configuration at the given path
func InertiaConfigPath ¶
func InertiaConfigPath() string
InertiaConfigPath gets the path to global Inertia configuration
func InertiaDir ¶ added in v0.6.0
func InertiaDir() string
InertiaDir gets the path to the directory where global Inertia configuration is stored
func InitProject ¶ added in v0.6.0
InitProject creates the inertia config file and returns an error if Inertia is already configured
func RemoveRemote ¶ added in v0.6.0
RemoveRemote deletes the named remote from the global Inertia configuration file.
func SaveRemote ¶ added in v0.6.0
SaveRemote adds or updates the given remote in the global Inertia configuration file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.