cli

package
v0.4.32 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIsDirectory = errors.New("is a directory")

Functions

func ReformatCommand

func ReformatCommand(ctx context.Context, cmd *cli.Command) error

ReformatCommand provides psv as a command line filter.

Typically, no additional arguments are required and the input will be reformatted as a 'clean' psv table and output to stdout.

func ReformatFromStream

func ReformatFromStream(ctx context.Context, doc *psv.Document, r io.Reader, w io.Writer) error

func Run

func Run(args []string) error

func ShowHelpAndExit added in v0.4.29

func ShowHelpAndExit(ctx context.Context, cmd *cli.Command) error

func ShowUsageAndExit added in v0.4.30

func ShowUsageAndExit(ctx context.Context, cmd *cli.Command) error

func ShowVersion

func ShowVersion()

func StartServer

func StartServer(ctx context.Context, cmd *cli.Command) error

StartServer starts the psv web server and if requested, opens the user's browser to the root webpage

Types

This section is empty.

Jump to

Keyboard shortcuts

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