(client *master.MasterClient)
| 193 | } |
| 194 | |
| 195 | func newDataNodeQueryDecommissionProgress(client *master.MasterClient) *cobra.Command { |
| 196 | cmd := &cobra.Command{ |
| 197 | Use: CliOpQueryProgress + " [{HOST}:{PORT}]", |
| 198 | Short: cmdDataNodeQueryDecommissionProgress, |
| 199 | Args: cobra.MinimumNArgs(1), |
| 200 | RunE: func(cmd *cobra.Command, args []string) error { |
| 201 | progress, err := client.NodeAPI().QueryDataNodeDecommissionProgress(args[0]) |
| 202 | if err != nil { |
| 203 | stdout("%v", err) |
| 204 | return err |
| 205 | } |
| 206 | stdout("%v", formatDataNodeDecommissionProgress(progress)) |
| 207 | return nil |
| 208 | }, |
| 209 | } |
| 210 | return cmd |
| 211 | } |
| 212 | |
| 213 | func newDataNodeQueryDecommissionedDisk(client *master.MasterClient) *cobra.Command { |
| 214 | cmd := &cobra.Command{ |
no test coverage detected