cmd

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Cmd for logcool run.Loading configuration files and information, as well as logcool operating logic.

Index

Constants

View Source
const (
	DEFAULTTEMPLATE = "./templates"
	DEFAULTFILE     = "default.json"
)

Variables

This section is empty.

Functions

func Command added in v0.2.0

func Command(ctx context.Context, template string) (confs []utils.Config)

Command load config from Command.

func Custom added in v0.2.0

func Custom(ctx context.Context, path string) (confs []utils.Config)

Custom load config from user's template.

func Help added in v0.2.0

func Help()

Help information.

func LoadTemplates added in v0.2.0

func LoadTemplates(ctx context.Context) (confs []utils.Config)

LoadTemplates load all templates in default dir.

func Run added in v0.2.0

func Run(confs []utils.Config) (err error)

Run logcool.

func Version added in v0.2.0

func Version()

Version Logcool's version information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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