forge

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyEmbeddedTemplate added in v1.0.4

func CopyEmbeddedTemplate(destDir string) error

CopyEmbeddedTemplate creates the basic directory structure for a new Forge project.

func Execute

func Execute()

Execute runs the Forge CLI command

func GenerateGoMod added in v1.0.4

func GenerateGoMod(destDir, moduleName string) error

GenerateGoMod creates the go.mod file for the project.

func NewCreateCommand

func NewCreateCommand() *cobra.Command

NewCreateCommand creates the create command

func NewDoctorCommand

func NewDoctorCommand() *cobra.Command

NewDoctorCommand creates the doctor command

func NewForgeCommand

func NewForgeCommand() *cobra.Command

NewForgeCommand creates and returns the Forge CLI root command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

NewVersionCommand creates the version command

func WriteProjectGitignore added in v1.0.4

func WriteProjectGitignore(destDir string) error

WriteProjectGitignore writes the .gitignore file.

Types

type ProjectMetadata

type ProjectMetadata struct {
	ProjectName  string    `yaml:"project_name"`
	ForgeVersion string    `yaml:"forge_version"`
	CreatedAt    time.Time `yaml:"created_at"`
}

ProjectMetadata represents the .forge/project.yaml file

Jump to

Keyboard shortcuts

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