Documentation ¶
Overview ¶
Package local provides access to local assets for the CLI
Index ¶
- Constants
- func GetClient(name, relPath string, cmd ...*cobra.Command) (*client.Client, func() error, error)
- func GetProjectConfigFromDisk(relPath string) (*cfg.Config, string, error)
- func GetRepoCurrentBranch() (string, error)
- func GetRepoRemote(remote string) (string, error)
- func InitializeInertiaProject(configPath, version, buildType, buildFilePath string) error
- func SaveKey(keyMaterial string, path string) error
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 ¶
GetProjectConfigFromDisk returns the current project's configuration. If an .inertia folder is not found, it returns an error.
func GetRepoCurrentBranch ¶
GetRepoCurrentBranch returns the current repository branch
func GetRepoRemote ¶
GetRepoRemote reads a remote URL
func InitializeInertiaProject ¶
InitializeInertiaProject creates the inertia config folder and returns an error if we're not in a git project.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.