Add basic skeleton of kpod executable

Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
Matthew Heon 2016-11-30 15:14:49 -05:00
parent be32aa566e
commit f512f211d0
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)
}
}