Help us shape the future of Go! Take the 2026 Go Developer Survey

args

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppArgs

type AppArgs struct {
	Server              *ServerCmd              `arg:"subcommand:server" help:"Start the api server"`
	ServerDocumentation *ServerDocumentationCmd `arg:"subcommand:server-docs" help:"Generate documentation for api server and start documentation server"`
	Migration           *Migration              `arg:"subcommand:migration" help:"Migration utils"`
}

func (AppArgs) Version

func (AppArgs) Version() string

type Migration

type Migration struct {
	Create *MigrationCreate `arg:"subcommand:create" help:"Create migration"`
}

type MigrationCreate

type MigrationCreate struct {
	Name string `arg:"-n,--name" help:"Name of migration"`
}

type ServerCmd

type ServerCmd struct {
	Port string `arg:"-p,--port" help:"Port to listen on" default:"8080"`
}

type ServerDocumentationCmd

type ServerDocumentationCmd struct {
	Port        string `arg:"-p,--port" help:"Port to listen on" default:"8081"`
	Plain       bool   `arg:"--plain" help:"Enable plain text output" default:"true"`
	PlainFormat string `arg:"--plain-format" help:"Set format for output (json, yaml)" default:"yaml"`
}

Jump to

Keyboard shortcuts

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