inertia: github.com/ubclaunchpad/inertia/local Index | Files | Directories

package local

import "github.com/ubclaunchpad/inertia/local"

Package local provides access to local assets for the CLI

Index

Package Files

doc.go env.go init.go storage.go

Constants

const (
    // EnvSSHPassphrase is the key used to fetch PEM key passphrases
    EnvSSHPassphrase = "IDENTITY_PASSPHRASE"
)

func GetProject Uses

func GetProject(path string) (*cfg.Project, error)

GetProject retrieves the Inertia project configuration at the given path

func GetRemotes Uses

func GetRemotes() (*cfg.Remotes, error)

GetRemotes retrieves global Inertia remotes configuration

func InertiaDir Uses

func InertiaDir() string

InertiaDir gets the path to the directory where global Inertia configuration is stored

func InertiaRemotesPath Uses

func InertiaRemotesPath() string

InertiaRemotesPath gets the path to global Inertia configuration

func InitProject Uses

func InitProject(path, name, host string, defaultProfile cfg.Profile) error

InitProject creates the inertia config file and returns an error if Inertia is already configured

func Initialize Uses

func Initialize() (*cfg.Remotes, error)

Initialize sets up Inertia configuration

func RemoveRemote Uses

func RemoveRemote(name string) error

RemoveRemote deletes the named remote from the global Inertia configuration file.

func SaveKey Uses

func SaveKey(keyMaterial string, path string) error

SaveKey writes a key to given path

func SaveRemote Uses

func SaveRemote(remote *cfg.Remote) error

SaveRemote adds or updates the given remote in the global Inertia configuration file.

func Write Uses

func Write(path string, data interface{}, writers ...io.Writer) error

Write saves the given data to the given path and/or writers

Directories

PathSynopsis
gitPackage git provides utilities for interacting with git.

Package local imports 8 packages (graph) and is imported by 14 packages. Updated 2021-01-28. Refresh now. Tools for package owners.