Example #1
0
func init() {
	cli.Register("init", cli.Entry{
		Description: "Initializes a working directory with a Luminos base project.",
		Usage:       "init [directory]",
		Command:     &initCommand{},
	})
}
Example #2
0
func init() {
	cli.Register("version", cli.Entry{
		Name:        "version",
		Description: "Prints software version.",
		Command:     &versionCommand{},
	})
}
Example #3
0
// Registers the run command.
func init() {
	cli.Register("run", cli.Entry{
		Name:        "run",
		Description: "Starts the server.",
		Command:     &runCommand{},
	})
}
Example #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{},
	})
}
Example #5
0
func init() {
	// Describing the "version" subcommand.
	cli.Register("version", cli.Entry{
		Name:        "version",
		Description: "Prints software version.",
		Command:     &versionCommand{},
	})
}
Example #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{},
	})

}
Example #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)
}