Skip to content

Commit

Permalink
"First Commit"
Browse files Browse the repository at this point in the history
  • Loading branch information
matang28 committed May 6, 2019
1 parent 4c4cea5 commit 3064ed6
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/packman/controllers/init.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package controllers
1 change: 1 addition & 0 deletions cmd/packman/controllers/pack.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package controllers
1 change: 1 addition & 0 deletions cmd/packman/controllers/singleton.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package controllers
1 change: 1 addition & 0 deletions cmd/packman/controllers/unpack.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package controllers
1 change: 1 addition & 0 deletions cmd/packman/lib/configuration.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package lib
1 change: 1 addition & 0 deletions cmd/packman/lib/module.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package lib
1 change: 1 addition & 0 deletions cmd/packman/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package packman
5 changes: 5 additions & 0 deletions packman/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module packmanScript

require (
github.com/securenative/packman latest
)
22 changes: 22 additions & 0 deletions packman/main.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 3064ed6

Please sign in to comment.