local

package
v0.6.0-preview1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2019 License: MIT Imports: 8 Imported by: 6

README

Local

GoDoc

This package contains utility functions that provide access to local assets (such as a local git repository) to display on the CLI and creates config files for Inertia upon first-time setup.

Documentation

Overview

Package local provides access to local assets for the CLI

Index

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

func GetInertiaConfig() (*cfg.Inertia, error)

GetInertiaConfig retrieves global Inertia configuration

func GetProject added in v0.6.0

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

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 Init

func Init() (*cfg.Inertia, error)

Init sets up Inertia configuration

func InitProject added in v0.6.0

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 RemoveRemote added in v0.6.0

func RemoveRemote(name string) error

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

func SaveKey

func SaveKey(keyMaterial string, path string) error

SaveKey writes a key to given path

func SaveRemote added in v0.6.0

func SaveRemote(remote *cfg.Remote) error

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

func Write added in v0.6.0

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

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL