cmd

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MulanPSL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfigGenerator added in v0.3.0

func LoadConfigGenerator(ctx *cli.Context, config *Config) error

加载生成器的详细配置

func LoadConfigParser added in v0.3.0

func LoadConfigParser(ctx *cli.Context, config *Config) error

加载解析器的详细配置

func Run

func Run()

Types

type Config added in v0.3.0

type Config struct {
	ParserName string      `json:"parserName,omitempty"`
	ParserData interface{} `json:"parserData,omitempty"`

	Language      string      `json:"language,omitempty"`
	Protocol      string      `json:"protocol,omitempty"`
	GeneratorData interface{} `json:"generatorData,omitempty"`

	Template *generator.TemplateConfig `json:"template,omitempty"`
}
var GlobalCFG *Config

func LoadConfigHeader added in v0.3.0

func LoadConfigHeader(ctx *cli.Context) (*Config, error)

加载配置信息, 但不解析解析器和生成器的详细配置

Jump to

Keyboard shortcuts

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