cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Version string = "v0.2.0"

Version of release

Variables

View Source
var WatcherConfig struct {
	// contains filtered or unexported fields
}

WatcherConfig provides config for watcher

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Executor

type Executor interface {
	Exec(command string) error
}

Executor interface

type Waiter

type Waiter interface {
	Wait(pid int, timeout int64) (<-chan struct{}, error)
}

Waiter interface for monitor process PID every timeout milliseconds

Jump to

Keyboard shortcuts

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