コード例 #1
0
ファイル: command-init.go プロジェクト: reedobrien/luminos
func init() {
	cli.Register("init", cli.Entry{
		Description: "Initializes a working directory with a Luminos base project.",
		Usage:       "init [directory]",
		Command:     &initCommand{},
	})
}
コード例 #2
0
ファイル: command-version.go プロジェクト: santihbc/latex
func init() {
	cli.Register("version", cli.Entry{
		Name:        "version",
		Description: "Prints software version.",
		Command:     &versionCommand{},
	})
}
コード例 #3
0
ファイル: command-run.go プロジェクト: santihbc/latex
// Registers the run command.
func init() {
	cli.Register("run", cli.Entry{
		Name:        "run",
		Description: "Starts the server.",
		Command:     &runCommand{},
	})
}
コード例 #4
0
ファイル: command-init.go プロジェクト: xiam/luminos
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{},
	})
}
コード例 #5
0
ファイル: command-version.go プロジェクト: xiam/luminos
func init() {
	// Describing the "version" subcommand.
	cli.Register("version", cli.Entry{
		Name:        "version",
		Description: "Prints software version.",
		Command:     &versionCommand{},
	})
}
コード例 #6
0
ファイル: command-run.go プロジェクト: xiam/luminos
func init() {
	// Describing the "run" subcommand.

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

}
コード例 #7
0
ファイル: command-run.go プロジェクト: reedobrien/luminos
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)
}