(ctx *snap.Context)
| 1672 | } |
| 1673 | |
| 1674 | func runOpenMetrics(ctx *snap.Context) error { |
| 1675 | if ctx.NArgs() != 0 { |
| 1676 | fmt.Fprintf(ctx.Stderr(), "Usage: %s openMetrics\n", commandName) |
| 1677 | return fmt.Errorf("expected 0 arguments, got %d", ctx.NArgs()) |
| 1678 | } |
| 1679 | |
| 1680 | return openDoc(ctx, docSpecs["metrics"]) |
| 1681 | } |
| 1682 | |
| 1683 | func runOpenLog(ctx *snap.Context) error { |
| 1684 | if ctx.NArgs() != 0 { |