looprun

command module
v0.0.2-beta Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README ยถ

Hereโ€™s the updated README.md with the additional sections and emojis to make it more engaging:


LoopRun ๐Ÿš€

LoopRun is a simple CLI tool that allows you to run and restart your commands easily. It listens for keyboard input and allows you to restart your command (e.g., a server) by pressing Ctrl+R. It's perfect for local development environments where you need to restart servers frequently.

Features โœจ

  • Run any command and restart it with Ctrl+R ๐Ÿ”„
  • Automatically forwards the command's output to your terminal ๐Ÿ“œ
  • Handles stopping the command gracefully on exit ๐Ÿšช

Installation ๐Ÿ’ป

To install LoopRun using Go, run the following command:

go install github.com/katistix/looprun@latest

Make sure your $GOPATH/bin is part of your system's PATH so that the looprun command is available globally.

Usage ๐ŸŽฎ

You can use LoopRun to run any command. For example, you can use it to start a simple Python HTTP server that you can restart with a key press.

Example:

Start a Python HTTP server that serves files from the current directory:

looprun python3 -m http.server

Once started, you can press Ctrl+R to restart the server, or Ctrl+C to quit the program.

Usage Syntax:
looprun <command> [args...]

Contributing ๐Ÿค

Contributions are welcome! If you'd like to improve this project, feel free to open an issue or a pull request. Here's how you can get started:

  1. Fork this repository ๐Ÿด
  2. Create a new branch (git checkout -b feature-branch) ๐ŸŒฟ
  3. Make your changes and commit them (git commit -m 'Add a new feature') ๐Ÿ’ก
  4. Push to the branch (git push origin feature-branch) ๐Ÿš€
  5. Open a pull request ๐Ÿ“ฉ

Let's build something awesome together! ๐Ÿ™Œ

License ๐Ÿ“œ

This project is licensed under the MIT License. See the LICENSE file for details.

Support โ˜•๏ธ

If you like this project and want to support its development, you can buy me a coffee:

Buy Me A Coffee

Thank you for your support! ๐Ÿ˜Š

Documentation ยถ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ ๆข็ฝ‘ๅ€