Skip to content

quickly iterate by repeating a command on an incoming TCP connection

License

Notifications You must be signed in to change notification settings

Blugatroff/iterate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iterate

Iterate will repeat the command its given whenever it receives "run" on port 7821. This is useful if you want to have a global shortcut to repeat an arbitrary command.

I like to have a terminal on my second monitor where i repeatedly typecheck my code, using iterate, i don't have to manually focus this terminal window and press ↑+↵. Instead i can just press my global shortcut for running echo "run" | nc 127.0.0.1 7821 and trigger iterate.

This is especially useful when you don't have a lsp server or some sort of builtin --watch flag for your tool.

Example

iterate cargo check

How to trigger

echo "run" | nc 127.0.0.1 7821

Configuration

If you don't want iterate to print the exit code of your command, you can set the ITERATE_QUIET variable.

ITERATE_QUIET=1 iterate launch nukes

About

quickly iterate by repeating a command on an incoming TCP connection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published