cmd

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 42 Imported by: 0

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

View Source
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.

View Source
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

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

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
}

func (*DeployCommand) Deploy

func (command *DeployCommand) Deploy(stage string, action string) error

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 RunEFunc

type RunEFunc func(cmd *cobra.Command, args []string) error

type WasmBuildCommand

type WasmBuildCommand struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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