commands

package
v0.0.0-...-faefad5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: GPL-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitNormal  = 0
	ExitError   = 1
	HomeDirFile = ".aem"
)

Exit codes for AEM

Variables

View Source
var (

	// Project - Global set project
	Project string
)

Functions

func CheckConfigExists

func CheckConfigExists() (bool, error)

CheckConfigExists is the configuration file available

func ConfigCheckListProjects

func ConfigCheckListProjects()

ConfigCheckListProjects Check for config and list projects if needed

func Execute

func Execute()

Execute init commands

func GetInstancesAndConfig

func GetInstancesAndConfig(i, g string) (*objects.Config, []objects.Instance, string, error)

GetInstancesAndConfig gets config and configuration for instance or group

func ReadRegisteredProjects

func ReadRegisteredProjects(homedir string) objects.Projects

ReadRegisteredProjects reads aem file to find registered projects

func RegisterProject

func RegisterProject()

RegisterProject in homedir

func WriteRegisterFile

func WriteRegisterFile(projects objects.Projects, homedir string)

WriteRegisterFile writes project in project registry file

Types

type Command

type Command interface {
	// contains filtered or unexported methods
}

Command internal interface for commands

Jump to

Keyboard shortcuts

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