actions

package
v0.0.0-...-f980ad1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateAction

type GenerateAction struct {
	UtilImportPath string
	// contains filtered or unexported fields
}

func Generate

func Generate(cfg GenerateConfig) *GenerateAction

func (*GenerateAction) RunWithConfig

func (a *GenerateAction) RunWithConfig(ctx context.Context, cfgName string) error

Run generate command

func (*GenerateAction) RunWithStruct

func (a *GenerateAction) RunWithStruct(ctx context.Context, s *schema.S) error

type GenerateConfig

type GenerateConfig struct {
	Dir         string
	TplType     string
	Module      string
	ModulePath  string
	WirePath    string
	SwaggerPath string
	FEDir       string
}

type NewAction

type NewAction struct {
	// contains filtered or unexported fields
}

func New

func New(cfg NewConfig) *NewAction

func (*NewAction) Run

func (a *NewAction) Run(ctx context.Context) error

type NewConfig

type NewConfig struct {
	Dir         string
	Name        string
	AppName     string
	PkgName     string
	Description string
	Version     string
	GitURL      string
	GitBranch   string
	FeDir       string
	FeName      string
	FeGitURL    string
	FeGitBranch string
}

type RemoveAction

type RemoveAction struct {
	// contains filtered or unexported fields
}

func Remove

func Remove(cfg RemoveConfig) *RemoveAction

func (*RemoveAction) Run

func (a *RemoveAction) Run(ctx context.Context, structs []string) error

func (*RemoveAction) RunWithConfig

func (a *RemoveAction) RunWithConfig(ctx context.Context, configFile string) error

type RemoveConfig

type RemoveConfig struct {
	Dir         string
	ModuleName  string
	ModulePath  string
	WirePath    string
	SwaggerPath string
}

Jump to

Keyboard shortcuts

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