command

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	ConfigPath    string
	ForceGenerate bool
	PathFilter    string

	Source          string
	Destination     string
	MockNames       string
	PackageOut      string
	SelfPackage     string
	WritePkgComment bool
	CopyrightFile   string
	Imports         string
	AuxFiles        string
	ExecOnly        string
	BuildFlags      string
	ProgOnly        bool
	DebugParser     bool
}

type ConfigRepo

type ConfigRepo interface {
	Put(m *model.Config, path string) error
	Get(path string) (*model.Config, error)
}

type Runner

type Runner struct {
	ConfigRepo    ConfigRepo
	MockgenRunner mockgen.Runner

	Args Args
}

func (Runner) Check

func (r Runner) Check()

func (Runner) DeleteMock

func (r Runner) DeleteMock()

DeleteMock delete a mock from config

func (Runner) GenerateConfig

func (r Runner) GenerateConfig()

GenerateConfig generates config require destination option.

func (Runner) Mockgen

func (r Runner) Mockgen()

Jump to

Keyboard shortcuts

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