File tree 1 file changed +19
-18
lines changed
1 file changed +19
-18
lines changed Original file line number Diff line number Diff line change 4
4
"context"
5
5
6
6
"github.com/c4pt0r/tcli"
7
- "github.com/c4pt0r/tcli/utils"
8
-
9
- "github.com/c4pt0r/tcli/client"
10
7
)
11
8
12
9
type ListPDCmd struct {}
@@ -25,20 +22,24 @@ func (c ListPDCmd) LongHelp() string {
25
22
26
23
func (c ListPDCmd ) Handler () func (ctx context.Context ) {
27
24
return func (ctx context.Context ) {
28
- utils .OutputWithElapse (func () error {
29
- pds , err := client .GetTiKVClient ().GetPDClient ().GetAllMembers (context .TODO ())
30
- if err != nil {
31
- return err
32
- }
33
-
34
- var output [][]string = [][]string {
35
- (client .PDInfo ).TableTitle (client.PDInfo {}),
36
- }
37
- for _ , pd := range pds {
38
- output = append (output , pd .Flatten ())
39
- }
40
- utils .PrintTable (output )
41
- return nil
42
- })
25
+ /*
26
+ utils.OutputWithElapse(func() error {
27
+ pds, err := client.GetTiKVClient().GetPDClient().GetAllMembers(context.TODO())
28
+ if err != nil {
29
+ return err
30
+ }
31
+
32
+ var output [][]string = [][]string{
33
+ (client.PDInfo).TableTitle(client.PDInfo{}),
34
+ }
35
+ for _, pd := range pds {
36
+ //TODO
37
+ panic("not implemented")
38
+ //output = append(output, pd.Flatten())
39
+ }
40
+ utils.PrintTable(output)
41
+ return nil
42
+ })
43
+ */
43
44
}
44
45
}
You can’t perform that action at this time.
0 commit comments