Documentation
¶
Index ¶
- Variables
- func ExcludeTemplateFile(templateFileName string, project *Project, exclusions *FileExclusions) bool
- func IsDirectoryEmpty(name string) (bool, error)
- func RemoveEmptyDirs(paths map[string]bool) error
- func RenameFiles(project *Project, outputPath string, renames *FileRenames) error
- func Run(cfg *Config) error
- type AppType
- type Authentication
- type BackgroundJob
- type Command
- type Config
- type Database
- type ExcludeFunc
- type FileExclusions
- type FileRenames
- type Project
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAppTypes = []AppType{ AppTypeAPI, AppTypeWeb, }
View Source
var AllAuthentications = []Authentication{ AuthenticationNone, AuthenticationEmail, AuthenticationEmailWithUsername, }
View Source
var AllBackgroundJobs = []BackgroundJob{ BackgroundJobNone, BackgroundJobBasic, BackgroundJobSQS, }
View Source
var AllDatabases = []Database{ DatabaseNone, DatabaseSQLite3, DatabasePostgres, DatabaseMySQL, }
Functions ¶
func ExcludeTemplateFile ¶ added in v0.48.0
func ExcludeTemplateFile(templateFileName string, project *Project, exclusions *FileExclusions) bool
func IsDirectoryEmpty ¶ added in v0.48.0
func RemoveEmptyDirs ¶ added in v0.48.0
func RenameFiles ¶ added in v0.48.0
func RenameFiles(project *Project, outputPath string, renames *FileRenames) error
Types ¶
type Authentication ¶ added in v0.48.0
type Authentication string
const ( AuthenticationNone Authentication = "none" AuthenticationEmail Authentication = "email" AuthenticationEmailWithUsername Authentication = "email-with-username" )
func (Authentication) IsValid ¶ added in v0.48.0
func (a Authentication) IsValid() bool
func (Authentication) RequiresDatabase ¶ added in v0.48.0
func (a Authentication) RequiresDatabase() bool
func (Authentication) String ¶ added in v0.48.0
func (a Authentication) String() string
type BackgroundJob ¶ added in v0.40.0
type BackgroundJob string
const ( BackgroundJobNone BackgroundJob = "none" BackgroundJobBasic BackgroundJob = "basic" BackgroundJobSQS BackgroundJob = "sqs" )
func (BackgroundJob) IsValid ¶ added in v0.40.0
func (t BackgroundJob) IsValid() bool
func (BackgroundJob) String ¶ added in v0.48.0
func (t BackgroundJob) String() string
type Config ¶
type Config struct { Quiet bool OutputDir string Git bool Name string AppType AppType Database Database BackgroundJob BackgroundJob Authentication Authentication SMTP bool Storage bool Redis bool OAuthDiscord bool OAuthFacebook bool OAuthGitHub bool OAuthGoogle bool OAuthInstagram bool OAuthLinkedIn bool }
type ExcludeFunc ¶ added in v0.48.0
type FileExclusions ¶
type FileExclusions struct { SMTP []string Storage []string Redis []string Auth []string OAuthGoogle []string OAuthFacebook []string OAuthGithub []string OAuthLinkedIn []string OAuthInstagram []string OAuthDiscord []string AppType map[AppType][]string Database map[Database][]string BackgroundJob map[BackgroundJob][]string AuthenticationType map[Authentication][]string ExcludeFuncs []*ExcludeFunc }
func NewFileExclusions ¶ added in v0.48.0
func NewFileExclusions() *FileExclusions
type FileRenames ¶
func NewFileRenames ¶ added in v0.48.0
func NewFileRenames() *FileRenames
type Project ¶
type Project struct { Name string AppType AppType Database Database BackgroundJob BackgroundJob Authentication Authentication SMTP bool Storage bool Redis bool OAuthDiscord bool OAuthFacebook bool OAuthGitHub bool OAuthGoogle bool OAuthInstagram bool OAuthLinkedIn bool }
func NewProject ¶ added in v0.48.0
Click to show internal directories.
Click to hide internal directories.