Documentation
¶
Index ¶
- func CreateGitignoreIfMissing(cfg *config.ProjectConfig) error
- func CreateReadmeIfMissing(cfg *config.ProjectConfig) error
- func DeployDocker(client *api.Client, globalCfg *config.GlobalConfig, ...) error
- func DeployGit(client *api.Client, globalCfg *config.GlobalConfig, ...) error
- func FirstTimeSetup(client *api.Client, globalCfg *config.GlobalConfig) (*config.ProjectConfig, error)
- func WatchDeployment(client *api.Client, appUUID string) bool
- type WatchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGitignoreIfMissing ¶
func CreateGitignoreIfMissing(cfg *config.ProjectConfig) error
CreateGitignoreIfMissing creates a .gitignore file if one doesn't exist
func CreateReadmeIfMissing ¶
func CreateReadmeIfMissing(cfg *config.ProjectConfig) error
CreateReadmeIfMissing creates a README.md file if one doesn't exist
func DeployDocker ¶
func DeployDocker(client *api.Client, globalCfg *config.GlobalConfig, projectCfg *config.ProjectConfig, prNumber int, verbose bool, force bool) error
DeployDocker handles Docker-based deployments
func DeployGit ¶
func DeployGit(client *api.Client, globalCfg *config.GlobalConfig, projectCfg *config.ProjectConfig, prNumber int, verbose bool, force bool) error
DeployGit handles Git-based deployments
func FirstTimeSetup ¶
func FirstTimeSetup(client *api.Client, globalCfg *config.GlobalConfig) (*config.ProjectConfig, error)
FirstTimeSetup walks the user through initial project configuration.
Types ¶
type WatchResult ¶
type WatchResult int
WatchResult represents the outcome of watching a deployment
const ( WatchSuccess WatchResult = iota WatchFailed WatchCancelled )
func WatchDeploymentWithCancel ¶
func WatchDeploymentWithCancel(client *api.Client, appUUID string) WatchResult
WatchDeploymentWithCancel polls the deployment status and allows cancellation with 'q'. Returns WatchSuccess, WatchFailed, or WatchCancelled.
Click to show internal directories.
Click to hide internal directories.