forked from openshift/geard
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
3 changed files
with
30 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ func main() { | |
execCommand, | ||
initCommand, | ||
statsCommand, | ||
specCommand, | ||
configCommand, | ||
nsenterCommand, | ||
} | ||
|
||
|
This file was deleted.
Oops, something went wrong.