(ctx *snap.Context)
| 157 | } |
| 158 | |
| 159 | func runDiff(ctx *snap.Context) error { |
| 160 | if ctx.NArgs() < 1 { |
| 161 | fmt.Fprintf(ctx.Stderr(), "Usage: %s diff <pr-url> [--no-comments]\n", commandName) |
| 162 | return fmt.Errorf("expected at least 1 argument") |
| 163 | } |
| 164 | return runDiffDirect(ctx.Arg(0), ctx.Args()[1:]) |
| 165 | } |
| 166 | |
| 167 | func runDeploy(ctx *snap.Context) error { |
| 168 | home, err := os.UserHomeDir() |
nothing calls this directly
no test coverage detected