Skip to content

Commit

Permalink
Rename spec to config
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
  • Loading branch information
Michael Crosby committed Jun 26, 2014
1 parent 53cfe0a commit 21b71ef
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 41 deletions.
29 changes: 29 additions & 0 deletions nsinit/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package main

import (
"encoding/json"
"fmt"
"log"

"github.com/codegangsta/cli"
)

var configCommand = cli.Command{
Name: "config",
Usage: "display the container configuration",
Action: configAction,
}

func configAction(context *cli.Context) {
container, err := loadContainer()
if err != nil {
log.Fatal(err)
}

data, err := json.MarshalIndent(container, "", "\t")
if err != nil {
log.Fatal(err)
}

fmt.Printf("%s", data)
}
2 changes: 1 addition & 1 deletion nsinit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func main() {
execCommand,
initCommand,
statsCommand,
specCommand,
configCommand,
nsenterCommand,
}

Expand Down
40 changes: 0 additions & 40 deletions nsinit/spec.go

This file was deleted.

0 comments on commit 21b71ef

Please sign in to comment.