run

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string, opts []kong.Option) (exitCode int)

Types

type Cmd

type Cmd struct {
	Files    []string          `kong:"arg,help='JSON/YAML schema files to process'"`
	Output   string            `kong:"short=o,help='Output file path (defaults to stdout)'"`
	Package  string            `kong:"short=p,default='gen',help='Package name for generated Go code'"`
	BaseDir  string            `kong:"group=parsing,help='Base directory for resolving relative schema references'"`
	URLMap   map[string]string `kong:"placeholder='prefix=directory',group=parsing,help='URL mappings for schema references'"`
	CACert   string            `kong:"group=parsing,help='CA certificate file for HTTPS connections'"`
	Insecure bool              `kong:"group=parsing,help='Skip TLS verification for HTTPS connections'"`
	Version  kong.VersionFlag  `kong:"short=v,help='Output the version and exit'"`
}

func (*Cmd) Run

func (cli *Cmd) Run(k *kong.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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