Documentation ¶
Overview ¶
Package command provides all the commands that can be executed by polka. There is a 1:1 mapping between "polka command" and command.go existing in this package.
Index ¶
- func CreateAppRootDir(name string) error
- func CreateChildDirs(appDir string)
- func CreateNewApp(rootDir string, name string)
- func DocArchitecture()
- func DocEndpoints()
- func DocIntegrations()
- func DocResources()
- func FindAndExecuteTemplate(currentDir string, templateName string, concept Concept) error
- func GetAppDir() (string, error)
- func GetEndpoints() []string
- func MakeAllEndpoints(currentDir string, conceptName string)
- func MakeEndpointDir(currentDir string, concept Concept) (string, error)
- func NotInAppDirectoryMessage() string
- type Concept
- type ConfigCommand
- type DeployCommand
- type DestroyCommand
- type DocCommand
- type GenerateCommand
- type NewCommand
- type PolkaDir
- type VersionCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAppRootDir ¶
Create a new app in the absolute location specified by name eg it should be ""/Users/fb3/code/todo" not "todo"
func CreateChildDirs ¶
func CreateChildDirs(appDir string)
func CreateNewApp ¶
func DocArchitecture ¶
func DocArchitecture()
func DocEndpoints ¶
func DocEndpoints()
func DocIntegrations ¶
func DocIntegrations()
func FindAndExecuteTemplate ¶
func GetEndpoints ¶
func GetEndpoints() []string
func MakeAllEndpoints ¶
func NotInAppDirectoryMessage ¶
func NotInAppDirectoryMessage() string
Types ¶
type Concept ¶
type Concept struct {
Name string
}
The Concept type contains all the information needed to generate/destroy/etc a given Concept during a command execution.
type ConfigCommand ¶
func (*ConfigCommand) Help ¶
func (c *ConfigCommand) Help() string
func (*ConfigCommand) Run ¶
func (c *ConfigCommand) Run(args []string) int
func (*ConfigCommand) Synopsis ¶
func (c *ConfigCommand) Synopsis() string
type DeployCommand ¶
func (*DeployCommand) Help ¶
func (c *DeployCommand) Help() string
func (*DeployCommand) Run ¶
func (c *DeployCommand) Run(args []string) int
func (*DeployCommand) Synopsis ¶
func (c *DeployCommand) Synopsis() string
type DestroyCommand ¶
func (*DestroyCommand) Help ¶
func (c *DestroyCommand) Help() string
func (*DestroyCommand) Run ¶
func (c *DestroyCommand) Run(args []string) int
func (*DestroyCommand) Synopsis ¶
func (c *DestroyCommand) Synopsis() string
type DocCommand ¶
func (*DocCommand) Help ¶
func (c *DocCommand) Help() string
func (*DocCommand) Run ¶
func (c *DocCommand) Run(args []string) int
func (*DocCommand) Synopsis ¶
func (c *DocCommand) Synopsis() string
type GenerateCommand ¶
func (*GenerateCommand) Help ¶
func (c *GenerateCommand) Help() string
func (*GenerateCommand) Run ¶
func (c *GenerateCommand) Run(args []string) int
func (*GenerateCommand) Synopsis ¶
func (c *GenerateCommand) Synopsis() string
type NewCommand ¶
func (*NewCommand) Help ¶
func (c *NewCommand) Help() string
func (*NewCommand) Run ¶
func (c *NewCommand) Run(args []string) int
func (*NewCommand) Synopsis ¶
func (c *NewCommand) Synopsis() string
type PolkaDir ¶
type VersionCommand ¶
VersionCommand is a Command implementation prints the version.
func (*VersionCommand) Help ¶
func (c *VersionCommand) Help() string
func (*VersionCommand) Run ¶
func (c *VersionCommand) Run(_ []string) int
func (*VersionCommand) Synopsis ¶
func (c *VersionCommand) Synopsis() string
Click to show internal directories.
Click to hide internal directories.