app

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Project   Project
	Structure []Structure
	Static    embed.FS
}

func New

func New() *App

func (*App) CopyFile

func (a *App) CopyFile(fileName, tmplFileName string) error

func (*App) CreateDirectories

func (a *App) CreateDirectories(directories []string) error

func (*App) CreateFile

func (a *App) CreateFile(tmplFileName, fileName string, parse bool) error

func (*App) CreateFiles

func (a *App) CreateFiles() error

func (*App) Fatal

func (a *App) Fatal(msg error, args ...string)

func (*App) GoModTidy

func (a *App) GoModTidy() error

func (*App) IsDirectoryExists

func (a *App) IsDirectoryExists(projectName string) bool

func (*App) ParseFile

func (a *App) ParseFile(file *os.File, tmplFileName string) error

func (*App) Prompt

func (a *App) Prompt()

func (*App) SetProject

func (a *App) SetProject(p *Project)

func (*App) SetStructure

func (a *App) SetStructure(structure []Structure)

func (*App) TidyGoMod

func (a *App) TidyGoMod() error

type Database

type Database struct {
	Type     string
	Driver   string
	Host     string
	Port     int
	Username string
	Password string
	DBName   string
	SSLMode  string

	SqlBoilerDriverName string
}

type Project

type Project struct {
	Path            string
	Address         string
	Name            string
	ModuleName      string
	Domain          string
	DomainLowerCase string

	Host string
	Port int

	ScaffoldAuthentication bool
	ScaffoldUseCase        bool
	ScaffoldRepository     bool

	Database

	TaskFile

	ExpandedID bool
}

func (*Project) InjectCode

func (p *Project) InjectCode() error

func (*Project) InjectImportDomainHandlerCode

func (p *Project) InjectImportDomainHandlerCode() error

type Structure

type Structure struct {
	TemplateFileName string
	FileName         string
	Parse            bool
}

type TaskFile added in v0.14.12

type TaskFile struct {
	CliArgs string
	N       string
}

Directories

Path Synopsis
tmpl

Jump to

Keyboard shortcuts

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