command

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package command defines and implements command-line commands and flags used by olive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompositeConfig

type CompositeConfig struct {
	Config config.Config
	Shows  []kernel.Show
}

type DB

type DB struct {
	User         string
	Password     string `conf:"mask"`
	Host         string
	Name         string
	MaxIdleConns int
	MaxOpenConns int
	DisableTLS   bool
}

type Response

type Response struct {
	// Err is set when the command failed to execute.
	Err error

	// The command that was executed.
	Cmd *cobra.Command
}

The Response value from Execute.

func Execute

func Execute(args []string) Response

type Web

type Web struct {
	ReadTimeout     time.Duration
	WriteTimeout    time.Duration
	IdleTimeout     time.Duration
	ShutdownTimeout time.Duration
	APIHost         string
	DebugHost       string
}

Jump to

Keyboard shortcuts

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