cmd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenCmd

func NewGenCmd(app *core.App) *cobra.Command

func NewManCmd

func NewManCmd(app *core.App) *cobra.Command

func NewRootCmd

func NewRootCmd(app *core.App) *cobra.Command

func NewVersionCmd

func NewVersionCmd(app *core.App) *cobra.Command

Types

type GenAction

type GenAction struct {
	*core.App

	InPath       string `validate:"required"`
	OutDir       string `validate:"required" default:"out"`
	OutFile      string `validate:"required" default:"{{ .EntityName | underscore }}.md"`
	OutFileTpl   render.Template
	SchemaPaths  []string
	TemplatePath string
}

func (*GenAction) Run

func (a *GenAction) Run(_ context.Context, _ []string) error

Jump to

Keyboard shortcuts

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