forked from influxdata/influxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
help.go
35 lines (25 loc) · 805 Bytes
/
help.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package main
import "fmt"
// HelpCommand displays help for command-line sub-commands.
type HelpCommand struct {
}
// NewHelpCommand returns a new instance of HelpCommand.
func NewHelpCommand() *HelpCommand {
return &HelpCommand{}
}
// Run executes the command.
func (cmd *HelpCommand) Run(args ...string) error {
fmt.Println(`
Configure and start an InfluxDB server.
Usage:
influxd [[command] [arguments]]
The commands are:
config display the default configuration
join-cluster create a new node that will join an existing cluster
run run node with existing configuration
version displays the InfluxDB version
"run" is the default command.
Use "influxd help [command]" for more information about a command.
`)
return nil
}