command

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Input  string `arg:"" help:"Input markdown spec file path." type:"existingfile"`
	Output string `short:"o" help:"Output HTML spec file path (defaults to same folder as input)."`
}

func (*Build) Run

func (b *Build) Run(c *Context) error

type Context

type Context struct {
	Ctx context.Context
	App *reviewer.App
}

type Root

type Root struct {
	LogLevel string           `help:"Set log level. (trace|debug|info|warn|error|panic)" default:"info"`
	Version  kong.VersionFlag `help:"Show version."`

	Build Build `cmd:"" help:"Build static HTML spec file."`
	Serve Serve `cmd:"" help:"Serve interactive review server."`
}

func (*Root) Run

func (r *Root) Run(c *Context) error

type Serve

type Serve struct {
	Input  string `arg:"" help:"Input markdown spec file path." type:"existingfile"`
	Output string `short:"o" help:"Output HTML spec file path (defaults to same folder as input)."`
	Port   int    `short:"p" default:"5500" help:"Target port for HTTP server."`
	NoOpen bool   `name:"no-open" help:"Do not automatically open the default web browser."`
}

func (*Serve) Run

func (s *Serve) Run(c *Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL