Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cli.Command{ Name: "diff", Usage: "Show the diff after patching", ArgsUsage: "<repository>", Flags: []cli.Flag{}, Action: func(ctx *cli.Context) error { repoName := ctx.Args().First() cfg, err := excav.LoadConfiguration() if err != nil { return termui.CliError(ctx, fmt.Errorf("Cannot load configuration. Check the ~/.config/excav/config.yaml")) } blk, err := excav.OpenBulk(cfg) if err != nil { return termui.CliError(ctx, fmt.Errorf("Cannot open bulk. Check the .excav folder")) } if repoName == "" { blk.ForEach(printDiff) } else { ctx := blk.Get(repoName) if ctx != nil { printDiff(ctx) } } return nil }, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.