Merge pull request #222 from mheon/kpod

Add basic skeleton of kpod executable
This commit is contained in:
Mrunal Patel 2016-12-01 20:37:32 -08:00 committed by GitHub
commit 529bebbe68
4 changed files with 45 additions and 1 deletions

16
cmd/kpod/launch.go Normal file
View file

@ -0,0 +1,16 @@
package main
import (
"fmt"
"github.com/urfave/cli"
)
// TODO implement
var launchCommand = cli.Command{
Name: "launch",
Usage: "launch a pod",
Action: func(context *cli.Context) error {
return fmt.Errorf("this functionality is not yet implemented")
},
}

23
cmd/kpod/main.go Normal file
View file

@ -0,0 +1,23 @@
package main
import (
"os"
"github.com/Sirupsen/logrus"
"github.com/urfave/cli"
)
func main() {
app := cli.NewApp()
app.Name = "kpod"
app.Usage = "manage pods and images"
app.Version = "0.0.1"
app.Commands = []cli.Command{
launchCommand,
}
if err := app.Run(os.Args); err != nil {
logrus.Fatal(err)
}
}