program

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvancedTemplates

type AdvancedTemplates struct {
	TemplateRoutes  string
	TemplateImports string
}

type DBDriver

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

type DBDriverTemplater

type DBDriverTemplater interface {
	Service() []byte
	Env() []byte
	Tests() []byte
}

type Docker

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

type DockerTemplater

type DockerTemplater interface {
	Docker() []byte
}

type Framework

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

type Project

type Project struct {
	ProjectName       string
	Exit              bool
	AbsolutePath      string
	ProjectType       flags.Framework
	DBDriver          flags.Database
	Docker            flags.Database
	FrameworkMap      map[flags.Framework]Framework
	DBDriverMap       map[flags.Database]DBDriver
	DockerMap         map[flags.Database]Docker
	AdvancedOptions   map[string]bool
	AdvancedTemplates AdvancedTemplates
	GitOptions        flags.Git
	OSCheck           map[string]bool
}

func (*Project) CheckOS

func (p *Project) CheckOS()

func (*Project) CreateFileWithInjection

func (p *Project) CreateFileWithInjection(pathToCreate string, projectPath string, fileName string, methodName string) error

CreateFileWithInjection creates the given file at the project path, and injects the appropriate template

func (*Project) CreateMainFile

func (p *Project) CreateMainFile() error

func (*Project) CreatePath

func (p *Project) CreatePath(pathToCreate string, projectPath string) error

CreatePath creates the given directory in the projectPath

func (*Project) CreateViteReactProject

func (p *Project) CreateViteReactProject(projectPath string) error

func (*Project) CreateWebsocketImports

func (p *Project) CreateWebsocketImports(appDir string)

func (*Project) ExitCLI

func (p *Project) ExitCLI(tprogram *tea.Program)

type Templater

type Templater interface {
	Main() []byte
	Server() []byte
	Routes() []byte
	WebsocketImports() []byte
	RequestPackage() []byte
	ResponsePackage() []byte
}

type WorkflowTemplater

type WorkflowTemplater interface {
	Releaser() []byte
	Test() []byte
	ReleaserConfig() []byte
}

Jump to

Keyboard shortcuts

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