Merge pull request #61 from vishh/split_nsinit

Separate nsinit main from implementation
This commit is contained in:
Victor Marmol 2014-07-01 16:06:29 -07:00
commit 39ebd07a82
9 changed files with 16 additions and 9 deletions

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"log"
@ -19,7 +19,7 @@ func preload(context *cli.Context) error {
return nil
}
func main() {
func NsInit() {
app := cli.NewApp()
app.Name = "nsinit"
app.Version = "0.1"

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"encoding/json"

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"fmt"

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"log"

7
nsinit/main/nsinit.go Normal file
View File

@ -0,0 +1,7 @@
package main
import "github.com/docker/libcontainer/nsinit"
func main() {
nsinit.NsInit()
}

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"log"

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"log"

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"encoding/json"

View File

@ -1,4 +1,4 @@
package main
package nsinit
import (
"encoding/json"