list

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const HostTemplate = `` /* 741-byte string literal not displayed */

Variables

View Source
var FuncMap = map[string]interface{}{
	"contains": strings.Contains,
	"duration": func(t1, t2 time.Time) (s string) {
		sec := uint64(t2.Sub(t1).Seconds())
		if sec > 3600 {
			s += fmt.Sprintf("%dh", sec/3600)
			sec = sec % 3600
		}

		if sec > 60 {
			s += fmt.Sprintf("%dm", sec/60)
			sec = sec % 60
		}
		s += fmt.Sprintf("%ds", sec)
		return s
	},
	"join": strings.Join,
}

Functions

func AddCommand

func AddCommand(c *cobra.Command)

AddCommand adds the command to c.

Types

type Host

type Host struct {
	ListOptions
	Hostport string
	Runs     []recorder.Run
}

type ListOptions

type ListOptions struct {
	Logdir string

	Host string
	Port string

	ShowIncomplete bool
	ShowLogfile    bool
	ShowResponses  bool
}

ListOptions collect options for the command.

Jump to

Keyboard shortcuts

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