px

command module
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 7 Imported by: 0

README

px

a simple cli to manipulate process.

Installation

brew tap metrue/homebrew-px
brew install px

Usage

CLI

NAME:
   px - manipulate processes like a boss

USAGE:
   px [global options] command [command options] [arguments...]

VERSION:
   0.6.6

COMMANDS:
     start    start process
     list     list processes
     inspect  inspect a processes
     kill     kill a process
     down     terminate a process
     notify   notify a process with signal
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

Import as a module

import github.com/metrue/px/agent

...

agent.List()                # list process with state
agent.Kill(pid)             # kill a process
agent.Down(pid)             # terminate a process
agent.Inspect(pid)          # inspect a process
agent.Signal(pid, signal)   # notify a process with signal

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
agent module

Jump to

Keyboard shortcuts

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