cli

package
v0.0.0-...-412ee12 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: BSD-3-Clause, BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Overview

Package cli implements the pmmp command line interface.

License

Governed by a 3-Clause BSD license. License file may be found in the root folder of this module.

Copyright © 2021 Norbert Pillmayer <norbert@pillmayer.com>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called exactly once by pmmp.main().

func NewLineView

func NewLineView(scaled float32) (gui.WidgetView, []app.Option, error)

Types

type AppPaths

type AppPaths interface {
	ConfigDir() string
	LogDir() string
}

AppPaths is an interface to determine application specific paths for configuration and logging/tracing.

func DefaultAppPaths

func DefaultAppPaths(appTag string) (AppPaths, error)

DefaultAppPaths returns an AppPaths instance with platform-dependent defaults set, given appTag. appTag is a string specific to a client's application to identify it.

type Formatter

type Formatter struct {
	termui.DefaultFormatter
}

func (Formatter) Format

func (f Formatter) Format(item interface{}, w io.Writer) (bool, error)

Jump to

Keyboard shortcuts

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