diff --git a/cmd/packman/controllers/init.go b/cmd/packman/controllers/init.go new file mode 100644 index 0000000..2d32936 --- /dev/null +++ b/cmd/packman/controllers/init.go @@ -0,0 +1 @@ +package controllers diff --git a/cmd/packman/controllers/pack.go b/cmd/packman/controllers/pack.go new file mode 100644 index 0000000..2d32936 --- /dev/null +++ b/cmd/packman/controllers/pack.go @@ -0,0 +1 @@ +package controllers diff --git a/cmd/packman/controllers/singleton.go b/cmd/packman/controllers/singleton.go new file mode 100644 index 0000000..2d32936 --- /dev/null +++ b/cmd/packman/controllers/singleton.go @@ -0,0 +1 @@ +package controllers diff --git a/cmd/packman/controllers/unpack.go b/cmd/packman/controllers/unpack.go new file mode 100644 index 0000000..2d32936 --- /dev/null +++ b/cmd/packman/controllers/unpack.go @@ -0,0 +1 @@ +package controllers diff --git a/cmd/packman/lib/configuration.go b/cmd/packman/lib/configuration.go new file mode 100644 index 0000000..55c21f8 --- /dev/null +++ b/cmd/packman/lib/configuration.go @@ -0,0 +1 @@ +package lib diff --git a/cmd/packman/lib/module.go b/cmd/packman/lib/module.go new file mode 100644 index 0000000..55c21f8 --- /dev/null +++ b/cmd/packman/lib/module.go @@ -0,0 +1 @@ +package lib diff --git a/cmd/packman/main.go b/cmd/packman/main.go new file mode 100644 index 0000000..532808d --- /dev/null +++ b/cmd/packman/main.go @@ -0,0 +1 @@ +package packman diff --git a/packman/go.mod b/packman/go.mod new file mode 100755 index 0000000..a547b11 --- /dev/null +++ b/packman/go.mod @@ -0,0 +1,5 @@ +module packmanScript + +require ( + github.com/securenative/packman latest +) diff --git a/packman/main.go b/packman/main.go new file mode 100755 index 0000000..3d30386 --- /dev/null +++ b/packman/main.go @@ -0,0 +1,22 @@ +package main + +import ( + "os" + pm "github.com/securenative/packman/pkg" +) + +type MyData struct { + PackageName string + Args []string +} + +func main() { + // Args sent by packman's driver will be forwarded to here: + args := os.Args[2:] + + // Build your own model to represent the templating you need + model := MyData{PackageName: "my_pkg", Args: args} + + // Reply to packman's driver: + pm.Reply(model) +}