cmd

package
v0.0.0-...-580ceab Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Crawl = cli.Command{
		Name:        "crawl",
		Usage:       "scrapy things from internet",
		Description: `You can choose what you are want.`,
		Subcommands: []cli.Command{
			subcmdCrawlNovel,
		},
	}
)
View Source
var (
	Db = cli.Command{
		Name:        "db",
		Usage:       "Create of rebuild database in mysql",
		Description: `You must take care of this command, cause it will destroy all you datas in database.`,
		Subcommands: []cli.Command{
			subcmdCreateTables,
		},
	}
)
View Source
var (
	Index = cli.Command{
		Name:        "index",
		Usage:       "Create of rebuild index in Elasticsearch",
		Description: `You may need to take care of this command.`,
		Subcommands: []cli.Command{
			subcmdCreateIndices,
		},
	}
)
View Source
var Web = cli.Command{
	Name:        "web",
	Usage:       "Start web server",
	Description: `You will need to set host and ip first before run, otherwise it will runing with default setting.`,
	Action:      runWeb,
	Flags: []cli.Flag{
		stringFlag("port, p", "9090", "Temporary port number to prevent conflict"),
		stringFlag("mode, m", "debug", "set the mode of gin"),
		stringFlag("config, c", "conf/app.yml", "Custom configuration file path"),
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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