-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcmt.go
38 lines (31 loc) · 807 Bytes
/
cmt.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
32
33
34
35
36
37
38
package main
import (
"log"
"os"
"github.com/codegangsta/cli"
"github.com/marcosnils/cmt/migrate"
"github.com/marcosnils/cmt/validate"
)
const (
version = "0.1"
usage = `Container Migration Tool
cmt is a Docker Global Hackday #3 project.
The purpose of the project is to create an external command line tool
that can be either used with docker or runC which helps on the task to live migrate
containers between different hosts by performing pre-migration validations
and allowing to auto-discover suitable target hosts.`
)
func main() {
app := cli.NewApp()
app.Name = "cmt"
app.Usage = usage
app.Version = version
app.EnableBashCompletion = true
app.Commands = []cli.Command{
migrate.Command,
validate.Command,
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
}