Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cli.Command{ Name: "show", Usage: "Show state of the bulk", Flags: []cli.Flag{ &cli.StringFlag{ Name: "output", Aliases: []string{"o"}, Usage: "output format: text/json. Default is text", DefaultText: "text", }, }, Action: func(ctx *cli.Context) error { cfg, err := excav.LoadConfiguration() if err != nil { return termui.CliError(ctx, errors.New("Cannot load configuration. Check the ~/.config/excav/config.yaml")) } blk, err := excav.OpenBulk(cfg) if err != nil { return cli.Exit("Cannot open current bulk", 1) } if ctx.String("output") == "json" { describeAsJson(blk) } else { describeAsText(blk) } return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.