run

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 7 Imported by: 0

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