cli

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package cli implements the commands for the Lumberjack CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string) error

Run executes the CLI.

Types

type TailCommand

type TailCommand struct {
	cli.BaseCommand
	// contains filtered or unexported fields
}

TailCommand tails and validates(optional) lumberjack logs.

func (*TailCommand) Desc

func (c *TailCommand) Desc() string

func (*TailCommand) Flags

func (c *TailCommand) Flags() *cli.FlagSet

func (*TailCommand) Help

func (c *TailCommand) Help() string

func (*TailCommand) Run

func (c *TailCommand) Run(ctx context.Context, args []string) (rErr error)

type ValidateCommand

type ValidateCommand struct {
	cli.BaseCommand
	// contains filtered or unexported fields
}

ValidateCommand validates lumberjack logs.

func (*ValidateCommand) Desc

func (c *ValidateCommand) Desc() string

func (*ValidateCommand) Flags

func (c *ValidateCommand) Flags() *cli.FlagSet

func (*ValidateCommand) Help

func (c *ValidateCommand) Help() string

func (*ValidateCommand) Run

func (c *ValidateCommand) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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