blob: 4df70ff555ddf57a8f2d6c2c6952b73fd913375c (
plain)
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
|
package shell
import (
"github.com/chrislusf/seaweedfs/weed/wdclient"
"google.golang.org/grpc"
"io"
)
type ShellOptions struct {
Masters *string
GrpcDialOption grpc.DialOption
}
type commandEnv struct {
env map[string]string
masterClient *wdclient.MasterClient
}
type command interface {
Name() string
Help() string
Do([]string, *commandEnv, io.Writer) error
}
var (
commands = []command{}
)
|