2016-11-30 20:14:49 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/Sirupsen/logrus"
|
|
|
|
"github.com/urfave/cli"
|
|
|
|
)
|
|
|
|
|
2017-06-16 16:27:06 +00:00
|
|
|
//Version of kpod
|
|
|
|
const Version string = "0.0.1"
|
|
|
|
|
2016-11-30 20:14:49 +00:00
|
|
|
func main() {
|
|
|
|
app := cli.NewApp()
|
|
|
|
app.Name = "kpod"
|
|
|
|
app.Usage = "manage pods and images"
|
2017-06-16 16:27:06 +00:00
|
|
|
app.Version = Version
|
2016-11-30 20:14:49 +00:00
|
|
|
|
|
|
|
app.Commands = []cli.Command{
|
|
|
|
launchCommand,
|
2017-06-27 13:45:25 +00:00
|
|
|
tagCommand,
|
2017-06-16 16:27:06 +00:00
|
|
|
versionCommand,
|
2016-11-30 20:14:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if err := app.Run(os.Args); err != nil {
|
|
|
|
logrus.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|