deploy

package
v0.0.0-...-f12714a Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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.

func WatchDeployment

func WatchDeployment(client *api.Client, appUUID string) bool

WatchDeployment polls the deployment status and displays build logs. Returns true if deployment succeeded, false if it failed.

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.

Jump to

Keyboard shortcuts

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