cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindGenerate

func BindGenerate(ctx *Context, cmd *cobra.Command)

func New

func New(version string) *cobra.Command

func NewGenerate

func NewGenerate(ctx *Context) *cobra.Command

func NewGenerateGo

func NewGenerateGo(ctx *Context) *cobra.Command

func NewGenerateManifest

func NewGenerateManifest(ctx *Context) *cobra.Command

func NewInit

func NewInit(ctx *Context) *cobra.Command

func NewMarkers

func NewMarkers(ctx *Context) *cobra.Command

func NewVersion

func NewVersion(ctx *Context) *cobra.Command

func ResolveManifestArgs

func ResolveManifestArgs(ctx *Context) cobra.PositionalArgs

ResolveManifestArgs resolves how many argument is accepted by the command at runtime

Types

type Context

type Context struct {
	Logger   *slog.Logger
	DryRun   bool
	Generate *ContextGenerate
	Version  string
}

type ContextGenerate

type ContextGenerate struct {
	Input string
}

Jump to

Keyboard shortcuts

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