initialize

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllAppTypes = []AppType{
	API,
	Web,
}
View Source
var AllDatabases = []Database{
	SQLite3,
	Postgres,
	MySQL,
	None,
}

Functions

func Run added in v0.35.0

func Run(cfg *Config) error

Types

type AppType

type AppType string
const (
	API AppType = "api"
	Web AppType = "web"
)

func (AppType) IsValid

func (t AppType) IsValid() bool

type Command

type Command struct {
	Message string
	Name    string
	Args    []string
}

type Config

type Config struct {
	Quiet     bool
	Name      string
	Database  Database
	AppType   AppType
	OutputDir string

	NoSMTP    bool
	NoStorage bool
	NoAuth    bool
	NoGit     bool
}

type Database

type Database string
const (
	SQLite3  Database = "sqlite3"
	Postgres Database = "postgres"
	MySQL    Database = "mysql"
	None     Database = "none"
)

func (Database) ConnString

func (d Database) ConnString(projectName string) string

func (Database) Driver

func (d Database) Driver() string

func (Database) Import

func (d Database) Import() string

func (Database) IsValid

func (d Database) IsValid() bool

func (Database) SQLCEngine

func (d Database) SQLCEngine() string

func (Database) String

func (d Database) String() string

type FileExclusions

type FileExclusions struct {
	NoSMTP     []string
	NoStorage  []string
	NoAuth     []string
	ByAppType  map[AppType][]string
	ByDatabase map[Database][]string
}

type FileRenames

type FileRenames struct {
	ByAppType map[AppType]map[string]string
}

type Project

type Project struct {
	Name     string
	Database Database
	AppType  AppType
	SMTP     bool
	Storage  bool
	Auth     bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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