Ejemplo n.º 1
0
func init() {
	cli.Register("init", cli.Entry{
		Description: "Initializes a working directory with a Luminos base project.",
		Usage:       "init [directory]",
		Command:     &initCommand{},
	})
}
Ejemplo n.º 2
0
func init() {
	cli.Register("version", cli.Entry{
		Name:        "version",
		Description: "Prints software version.",
		Command:     &versionCommand{},
	})
}
Ejemplo n.º 3
0
// Registers the run command.
func init() {
	cli.Register("run", cli.Entry{
		Name:        "run",
		Description: "Starts the server.",
		Command:     &runCommand{},
	})
}
Ejemplo n.º 4
0
func init() {
	// Describing the "init" subcommand.
	cli.Register("init", cli.Entry{
		Description: "Creates a new Luminos site scaffold in the given PATH.",
		Usage:       "init [PATH]",
		Command:     &initCommand{},
	})
}
Ejemplo n.º 5
0
func init() {
	// Describing the "version" subcommand.
	cli.Register("version", cli.Entry{
		Name:        "version",
		Description: "Prints software version.",
		Command:     &versionCommand{},
	})
}
Ejemplo n.º 6
0
func init() {
	// Describing the "run" subcommand.

	cli.Register("run", cli.Entry{
		Name:        "run",
		Description: "Runs a luminos server.",
		Arguments:   []string{"c"},
		Command:     &runCommand{},
	})

}
Ejemplo n.º 7
0
func init() {

	cli.Register("run", cli.Entry{
		Name:        "run",
		Description: "Runs a luminos server.",
		Arguments:   []string{"c"},
		Command:     &runCommand{},
	})

	hosts = make(map[string]*host.Host)
}