lx
is a tool for running commands and filtering their output. It is similar to the docker logs
command but with additional filtering capabilities (WIP).
To install this project, you need to have Go installed. Then, you can install the project by running the following command:
go install github.com/Geun-Oh/lx
To use lx to run a command and filter its output, you can use the following command:
lx --keyword <your-keyword> <command> [command-args...]
For example, to filter the output of the echo command, you can use:
lx --keyword LOG echo "LOG: HELLO WORLD"
The output will be as follows:
[2025-01-26T13:32:19+09:00][stdout]: LOG: HELLO WORLD
Command executed successfully.
This command will filter the output and display only the lines containing the text hello.
Contributions are welcome! You can contribute by reporting bugs, requesting features, or submitting pull requests.
This project is licensed under the MIT License. See the LICENSE file for more details.