cmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ParamsSep = ","
)

Variables

This section is empty.

Functions

func FieldRangeNameToType

func FieldRangeNameToType(rangeName string) core.FieldRangeType

func ModeNameToType

func ModeNameToType(modeName string) core.ModeType

Types

type AppFlags

type AppFlags struct {
	ModeNames  []string
	ModeTypes  []core.ModeType
	RangeNames []string
	RangeTypes []core.FieldRangeType
	LangRefs   []string
	DataFiles  []string
}

func (*AppFlags) CheckMode

func (o *AppFlags) CheckMode(mode core.ModeType) bool

func (*AppFlags) GenConstContexts

func (o *AppFlags) GenConstContexts() (contexts []*core.ConstContext)

func (*AppFlags) GenDataContexts

func (o *AppFlags) GenDataContexts() (contexts []*core.DataContext)

func (*AppFlags) GenTitleContexts

func (o *AppFlags) GenTitleContexts() (contexts []*core.TitleContext)

func (*AppFlags) String

func (o *AppFlags) String() string

type SysFlags

type SysFlags struct {
	EnvPath   string
	Modes     string
	Ranges    string
	LangRefs  string
	DataFiles string
	Source    string
	Target    string
}

func ParseFlag

func ParseFlag() (cfg *SysFlags, err error)

func (*SysFlags) GetCommandParams

func (f *SysFlags) GetCommandParams() *AppFlags

func (*SysFlags) String

func (f *SysFlags) String() string

Jump to

Keyboard shortcuts

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