cli

package
v0.0.0-...-69e0da2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvSettings

type EnvSettings struct {
	AppDirName           string               `yaml:"app_dir_name"`
	ApiDirName           string               `yaml:"api_dir_name"`
	Namespace            string               `yaml:"namespace"`     // only gen api or gen mono repo scaffold is active
	TemplatePath         string               `yaml:"template_path"` // TODO
	PolicyIfExistsTarget PolicyIfExistsTarget `yaml:"policy_if_exists_target"`
	FieldStyle           string               `yaml:"field_style"`
	PrimaryKey           string               `yaml:"primary_key"`
}

func New

func New() *EnvSettings

func (*EnvSettings) AddFlags

func (s *EnvSettings) AddFlags(fs *pflag.FlagSet)

type PolicyIfExistsTarget

type PolicyIfExistsTarget int
const (
	RewriteIfExistsTarget PolicyIfExistsTarget = iota
	SkipIfExistsTarget
	ExitIfExistsTarget
)

Jump to

Keyboard shortcuts

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