cli

package
v2.17.4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateBucketName

func ValidateBucketName(name string) error

func ValidateStageName

func ValidateStageName(name string) error

Types

type CliCommands

type CliCommands struct {
	Init            *bool
	Build           *string
	Deploy          *bool
	Help            *bool
	ImgOptimization *bool
	HotReload       *bool
	DeployAction    *string
	DeployStage     *string
}

type Config

type Config struct {
	ProjectName       string `json:"projectName"`
	GoModName         string `json:"goModuleName"`
	TailwindBinary    string `json:"tailwindBinary,omitempty"`
	WasmBinary        string `json:"wasmBinary,omitempty"`
	WasmTinyGoVersion string `json:"wasmTinyGoVersion,omitempty"`
	OptimizeImages    struct {
		LowResolutionRate int `json:"lowResolutionRate"`
	} `json:"optimizeImages"`
	Deploy *DeployConfig `json:"deploy"`
}

type DeployConfig

type DeployConfig struct {
	ServerMemory  int                     `json:"serverMemory"`
	ServerTimeout int                     `json:"serverTimeout"`
	Region        string                  `json:"region"`
	Profile       string                  `json:"profile"`
	Stages        map[string]EnvVariables `json:"stages"`
	CustomDomain  bool                    `json:"customDomain"`
}

type EnvVariables

type EnvVariables struct {
	BucketName     string
	LambdaName     string
	HostedZoneId   *string                `json:"hostedZoneId"`
	CustomDomain   *string                `json:"customDomain"`
	CertificateArn *string                `json:"certificateArn"`
	WafArn         *string                `json:"wafArn"`
	ENV            map[string]interface{} `json:"env,omitempty"`
}

type GothicCli

type GothicCli struct {
	Runtime string

	Templates       helpers.TemplateHelper
	Tailwind        helpers.TailwindHelper
	Templ           helpers.TemplHelper
	Logger          *slog.Logger
	AwsSam          helpers.AwsSamHelper
	AWS             helpers.AwsHelper
	FileBasedRouter routes.FileBasedRouteHelper
	Proxy           proxy.ProxyHelper
	Wasm            wasmhelper.WasmHelper
	// contains filtered or unexported fields
}

func NewCli

func NewCli() GothicCli

func (*GothicCli) GetAppId

func (cli *GothicCli) GetAppId() (string, error)

func (*GothicCli) GetConfig

func (cli *GothicCli) GetConfig() (Config, error)

func (*GothicCli) InitializeModule

func (cli *GothicCli) InitializeModule(goModuleName string, frameworkVersion string) error

Jump to

Keyboard shortcuts

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