new

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdNew = &commands.Command{
	UsageLine: "new [appname] [-gopath=false] [-radiant=v1.12.3]",
	Short:     "Creates a radiant application",
	Long: `
Creates a radiant application for the given app name in the current directory.
  now default supoort generate a go modules project
  The command 'new' creates a folder named [appname] [-gopath=false] [-radiant=v1.12.3] and generates the following structure:

            ├── main.go
            ├── go.mod
            ├── {{"conf"|foldername}}
            │     └── app.conf
            ├── {{"controllers"|foldername}}
            │     └── default.go
            ├── {{"models"|foldername}}
            ├── {{"routers"|foldername}}
            │     └── router.go
            ├── {{"tests"|foldername}}
            │     └── default_test.go
            ├── {{"static"|foldername}}
            │     └── {{"js"|foldername}}
            │     └── {{"css"|foldername}}
            │     └── {{"img"|foldername}}
            └── {{"views"|foldername}}
                  └── index.tpl

`,
	PreRun: nil,
	Run:    CreateApp,
}

Functions

func CreateApp

func CreateApp(cmd *commands.Command, args []string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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