local

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 10 Imported by: 0

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 = "PEM_PASSPHRASE"
)

Variables

This section is empty.

Functions

func GetProjectConfigFromDisk

func GetProjectConfigFromDisk(relPath string) (*cfg.Config, string, error)

GetProjectConfigFromDisk returns the current project's configuration. If an .inertia folder is not found, it returns an error.

func GetRepoCurrentBranch

func GetRepoCurrentBranch() (string, error)

GetRepoCurrentBranch returns the current repository branch

func GetRepoRemote

func GetRepoRemote(remote string) (string, error)

GetRepoRemote reads a remote URL

func InitializeInertiaProject

func InitializeInertiaProject(configPath, version, buildType, buildFilePath string) error

InitializeInertiaProject creates the inertia config folder and returns an error if we're not in a git project.

func SaveKey

func SaveKey(keyMaterial string, path string) error

SaveKey writes a key to given path

Types

This section is empty.

Jump to

Keyboard shortcuts

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