cmd

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package cmd is responsible for the program's command-line interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main is the entry point of the program.

Types

type Options

type Options struct {
	// ConfigPath specifies path to the configuration file.
	ConfigPath string `short:"c" long:"config-path" description:"Path to the config file." required:"true"`

	// Verbose defines whether we should write the DEBUG-level log or not.
	Verbose bool `yaml:"verbose" short:"v" long:"verbose" description:"Verbose output (optional)." optional:"yes" optional-value:"true"`
}

Options represents command-line arguments.

func (*Options) String

func (o *Options) String() (str string)

String implements the fmt.Stringer interface for *Options.

Jump to

Keyboard shortcuts

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