local

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 8 Imported by: 6

README

Local

PkgGoDev

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

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

GetProject retrieves the Inertia project configuration at the given path

func GetRemotes added in v0.6.0

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

GetRemotes retrieves global Inertia remotes 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 InertiaRemotesPath added in v0.6.0

func InertiaRemotesPath() string

InertiaRemotesPath gets the path to global 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 Initialize added in v0.6.0

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

Initialize sets up Inertia configuration

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
Package git provides utilities for interacting with git.
Package git provides utilities for interacting with git.

Jump to

Keyboard shortcuts

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