shell

package
v0.0.0-...-1143ee3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package shell provides modules to display the output of shell commands. It supports both long-running commands, where the output is the last line, e.g. dmesg or tail -f /var/log/some.log, and repeatedly running commands, e.g. whoami, date +%s.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Every

func Every(interval time.Duration, cmd string, args ...string) base.WithClickHandler

Every constructs a module that runs the given command with the specified interval and displays the commands output in the bar.

func Once

func Once(cmd string, args ...string) base.WithClickHandler

Once constructs a static module that displays the output of the given command in the bar.

func Tail

func Tail(cmd string, args ...string) base.WithClickHandler

Tail constructs a module that displays the last line of output from a long running command. Use the reformat module to adjust the output if necessary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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