cmds

package
v0.3.27 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check added in v0.3.25

func Check(ctx context.Context, path string) tea.Cmd

Checks the spec and provides feedback.

func DeploySite added in v0.3.26

func DeploySite(ctx context.Context, id, path string, files []string, filesCtrl ports.FilesController) tea.Cmd

DeploySite deploys a site by scanning the directory and uploading files.

func Init

func Init(path string, force bool) tea.Cmd

Init initializes the application.

func ScanDir added in v0.3.26

func ScanDir(path string, ignore []string) tea.Cmd

ScanDir scans the directory for files to deploy.

func SitesCheckExists

func SitesCheckExists(ctx context.Context, client *apis.ClientWithResponses, name string) tea.Cmd

SitesCheckExists checks if a site exists and returns a SiteExistsMsg if it does.

Types

type CheckSuccessMsg added in v0.3.25

type CheckSuccessMsg struct{}

CheckSuccessMsg is sent when the check command succeeds.

type ErrorMsg

type ErrorMsg struct {
	Err error
}

ErrorMsg is a message that contains an error.

type InitSuccessMsg added in v0.3.25

type InitSuccessMsg struct{}

InitSuccessMsg is a message that indicates the initialization was successful.

type SitesCheckDoesNotExistMsg

type SitesCheckDoesNotExistMsg struct{}

SitesCheckDoesNotExistMsg is sent when a site does not exist.

type SitesCheckExistsMsg

type SitesCheckExistsMsg struct{}

SitesCheckExistsMsg is sent when a site exists.

type SitesDeployFileSuccessMsg added in v0.3.26

type SitesDeployFileSuccessMsg struct{ File string }

SitesDeployFileSuccessMsg is sent when a site deployment is successful.

type SitesDeployScanSuccessMsg added in v0.3.26

type SitesDeployScanSuccessMsg struct {
	Total int
	Files []string
}

SitesDeployScanSuccess is sent when a site deployment scan is successful.

Jump to

Keyboard shortcuts

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