Merge pull request #6 from AkihiroSuda/debug

buildctl dump -> buildctl debug dump
docker-18.09
Tõnis Tiigi 2017-06-13 09:45:59 -07:00 committed by GitHub
commit 85df0f4573
3 changed files with 17 additions and 3 deletions

14
cmd/buildctl/debug.go Normal file
View File

@ -0,0 +1,14 @@
package main
import (
"github.com/tonistiigi/buildkit_poc/cmd/buildctl/debug"
"github.com/urfave/cli"
)
var debugCommand = cli.Command{
Name: "debug",
Usage: "debug utilities",
Subcommands: []cli.Command{
debug.DumpCommand,
},
}

View File

@ -1,4 +1,4 @@
package main package debug
import ( import (
"io" "io"
@ -13,7 +13,7 @@ import (
"github.com/urfave/cli" "github.com/urfave/cli"
) )
var dumpCommand = cli.Command{ var DumpCommand = cli.Command{
Name: "dump", Name: "dump",
Usage: "dump LLB in human-readable format. LLB must be passed via stdin. This command does not require the daemon to be running.", Usage: "dump LLB in human-readable format. LLB must be passed via stdin. This command does not require the daemon to be running.",
Action: dumpLLB, Action: dumpLLB,

View File

@ -29,7 +29,7 @@ func main() {
app.Commands = []cli.Command{ app.Commands = []cli.Command{
diskUsageCommand, diskUsageCommand,
buildCommand, buildCommand,
dumpCommand, debugCommand,
} }
app.Before = func(context *cli.Context) error { app.Before = func(context *cli.Context) error {