Documentation
¶
Index ¶
- func WithConfig(config *config.Config) func(*Core)
- func WithMsgChan(msgChan *chan common.Msg) func(*Core)
- type Commands
- type Core
- func (c *Core) AddCommand(name string, command string) common.Msg
- func (c *Core) AddCommandToProject(projectName string, commandName string) common.Msg
- func (c *Core) AddProject(name string, domain string, port int, commandNames []string) common.Msg
- func (c *Core) AddVariable(name string, key string, value string) common.Msg
- func (c *Core) GetCommandNames() []string
- func (c *Core) GetCommands() (Commands, error)
- func (c *Core) GetCommandsConfig() error
- func (c *Core) GetProjectDir(projectName string) common.Msg
- func (c *Core) GetProjectNames() []string
- func (c *Core) GetProjects() (Projects, error)
- func (c *Core) GetProjectsConfig() error
- func (c *Core) Init() common.Msg
- func (c *Core) ProjectExists(name string) (bool, Project)
- func (c *Core) RemoveCommand(name string) common.Msg
- func (c *Core) RemoveCommandFromProject(projectName string, commandName string) common.Msg
- func (c *Core) RemoveProject(name string) common.Msg
- func (c *Core) RemoveVariable(name string, key string) common.Msg
- func (c *Core) RequireSudo() error
- func (c *Core) SetProjectDir(projectName string, dir *string) common.Msg
- func (c *Core) TryToRun(name string) common.Msg
- type Project
- type Projects
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithConfig ¶
func WithMsgChan ¶
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
func (*Core) AddCommandToProject ¶
func (*Core) AddProject ¶
func (*Core) AddVariable ¶
func (*Core) GetCommandNames ¶
func (*Core) GetCommands ¶
func (*Core) GetCommandsConfig ¶
func (*Core) GetProjectNames ¶
func (*Core) GetProjects ¶
func (*Core) GetProjectsConfig ¶
func (*Core) RemoveCommandFromProject ¶
func (*Core) RequireSudo ¶
func (*Core) SetProjectDir ¶
Click to show internal directories.
Click to hide internal directories.