Skip to content
/ tie Public

Mix multiple commands stream, keep all foreground and kill all in one Ctrl+C

License

Notifications You must be signed in to change notification settings

otiai10/tie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tie

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/tie
# then just hit `tie`

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

% tie
> 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

About

Mix multiple commands stream, keep all foreground and kill all in one Ctrl+C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages