Add basic skeleton of kpod executable
Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
parent
be32aa566e
commit
f512f211d0
4 changed files with 45 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
|||
/ocid
|
||||
/ocic
|
||||
/kpod
|
||||
conmon/conmon
|
||||
conmon/conmon.o
|
||||
pause/pause
|
||||
|
|
6
Makefile
6
Makefile
|
@ -52,12 +52,16 @@ ocid: $(GO_SRC) | ${OCID_LINK}
|
|||
ocic: $(GO_SRC) | ${OCID_LINK}
|
||||
$(GO) build -o $@ ./cmd/client/
|
||||
|
||||
kpod: $(GO_SRC) | ${OCID_LINK}
|
||||
$(GO) build -o $@ ./cmd/kpod/
|
||||
|
||||
ocid.conf: ocid
|
||||
./ocid --config="" config --default > ocid.conf
|
||||
|
||||
clean:
|
||||
rm -f ocid.conf
|
||||
rm -f ocic ocid
|
||||
rm -f kpod
|
||||
rm -f ${OCID_LINK}
|
||||
rm -f docs/*.5 docs/*.8
|
||||
find . -name \*~ -delete
|
||||
|
@ -77,7 +81,7 @@ integration: ocidimage
|
|||
localintegration: binaries
|
||||
./test/test_runner.sh ${TESTFLAGS}
|
||||
|
||||
binaries: ocid ocic conmon pause
|
||||
binaries: ocid ocic kpod conmon pause
|
||||
|
||||
MANPAGES_MD := $(wildcard docs/*.md)
|
||||
MANPAGES := $(MANPAGES_MD:%.md=%)
|
||||
|
|
16
cmd/kpod/launch.go
Normal file
16
cmd/kpod/launch.go
Normal 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
23
cmd/kpod/main.go
Normal 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)
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue