Skip to content

Commit

Permalink
Move experimental commands from flags to cli package.
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Boucher <[email protected]>
  • Loading branch information
boucher committed Dec 29, 2015
1 parent edfcacd commit 483e6d5
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions docker/flags_experimental.go → cli/cli_experimental.go
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
// +build experimental

package main

import (
"sort"

"github.com/docker/docker/cli"
)
package cli

func init() {
experimentalCommands := []cli.Command{
experimentalCommands := []Command{
{"checkpoint", "Checkpoint one or more running containers"},
{"restore", "Restore one or more checkpointed containers"},
}

dockerCommands = append(dockerCommands, experimentalCommands...)
for _, cmd := range experimentalCommands {
DockerCommands[cmd.Name] = cmd
}

//Sorting logic required here to pass Command Sort Test.
sort.Sort(byName(dockerCommands))
dockerCommands = append(dockerCommands, experimentalCommands...)
}

0 comments on commit 483e6d5

Please sign in to comment.