Documentation
¶
Overview ¶
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CURRENT_VERSION string = "v3.5.0"
CURRENT_VERSION is the CLI / product ("generation") version — what `gothic version` prints and what the `cli/v3` module is tagged at.
var FrameworkModules = []gothci_cli.FrameworkModule{
{Path: "github.com/gothicframework/core", Version: "v1.5.0"},
{Path: "github.com/gothicframework/components", Version: "v1.2.0"},
{Path: "github.com/gothicframework/middlewares", Version: "v1.2.0"},
}
FrameworkModules are the published framework libraries a freshly-scaffolded project imports, each pinned to the version this CLI scaffolds against. The libraries version INDEPENDENTLY of the CLI generation (a pin per module), so these are v1.x while the CLI is v3.x — see 01_architecture / 16_adrs.
ONLY `gothic init` writes these versions (via InitializeModule). No other CLI command rewrites the user's go.mod, so a project may bump any of them later. To ship new library versions, bump the entries here.
Functions ¶
Types ¶
type BuildCommand ¶
type BuildCommand struct {
// contains filtered or unexported fields
}
func (*BuildCommand) Build ¶
func (command *BuildCommand) Build() error
type CssCommand ¶
type CssCommand struct {
// contains filtered or unexported fields
}
type DeployCommand ¶
type DeployCommand struct {
// contains filtered or unexported fields
}
type HotReloadCommand ¶
type HotReloadCommand struct {
// contains filtered or unexported fields
}
func (*HotReloadCommand) HotReload ¶
func (command *HotReloadCommand) HotReload() error
type ImgOptimizationCommand ¶
type ImgOptimizationCommand struct {
// contains filtered or unexported fields
}
func NewImgOptimizationCommandCli ¶
func NewImgOptimizationCommandCli(cli *gothic_cli.GothicCli) ImgOptimizationCommand
func (*ImgOptimizationCommand) OptimizeImages ¶
func (command *ImgOptimizationCommand) OptimizeImages() error
type InitCommand ¶
type InitCommand struct {
// contains filtered or unexported fields
}
func NewInitCommandCli ¶
func NewInitCommandCli(cli *gothci_cli.GothicCli, gothicCliData cli_data.GothicCliData) InitCommand
func (*InitCommand) CreateNewGothicApp ¶
func (command *InitCommand) CreateNewGothicApp(data cli_data.GothicCliData, modulePath string) error
CreateNewGothicApp scaffolds a new Gothic project. modulePath is the Go module path: when non-empty (passed as the positional `init [module-path]` arg) init runs non-interactively; when empty it is prompted for. The project name is derived from the module path (see deriveProjectName), falling back to an interactive prompt only when the module can't be reduced to a valid name.
type WasmBuildCommand ¶
type WasmBuildCommand struct {
// contains filtered or unexported fields
}