-
Notifications
You must be signed in to change notification settings - Fork 1
/
command.go
31 lines (28 loc) · 879 Bytes
/
command.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
package main
import (
"github.com/codegangsta/cli"
"github.com/foostan/fileconsul/command"
)
var Commands = []cli.Command{
cli.Command{
Name: "status",
Usage: "Show status of local files",
Description: "Show the difference between local files and remote files that is stored in K/V Store of a consul cluster.",
Flags: command.StatusFlags,
Action: command.StatusCommand,
},
cli.Command{
Name: "pull",
Usage: "Pull files from a consul cluster",
Description: "Pull remote files from K/V Store of a consul cluster.",
Flags: command.PullFlags,
Action: command.PullCommand,
},
cli.Command{
Name: "push",
Usage: "Push file to a consul cluster",
Description: "Push remote files to K/V Store of a consul cluster.",
Flags: command.PushFlags,
Action: command.PushCommand,
},
}