too

command module
v0.0.0-...-16f1eb7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 3 Imported by: 0

README

too

Go codecov Go Report Card

The opposite of tee, merges multiple command io stream and controls like 1 command.

-> command 1 stream ─┐
-> command 2 stream ─┤
                     └─ stdout/stderr/SIGINT to kill both

install

% go get -u github.com/otiai10/too
# then just hit `too`

why?

When you need to start 2 file watchers, and kill them at the same time, like this

% nohup rails server &
% nohup npm start-webpack &
# then
% pkill rails
% pkill start-webpack
# <- annoying :(

usage

% too
> rails server # return key
> npm start-webpack # return key
> # return key again

[0] ... # Rails log here
[1] ... # npm log here

# To kill both, just Ctrl+C once!

examples

by interactive mode

i

by one-line mode

o

in both ways, you can kill all the commands by just 1 Ctrl+C

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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