RedOwl CLI is a productivity tool designed to help users take regular breaks and blink their eyes to prevent eye strain. With customizable intervals and durations, RedOwl ensures you maintain healthy eye habits while working on your computer.
- Set reminders to blink your eyes at regular intervals.
- Customize the duration of breaks.
- Supports JSON and YAML configuration files.
- Plays a sound to alert you when it's time to take a break and when the break ends.
- Logs the number of completed sessions and the time remaining for the next break.
You can easily install RedOwl CLI using the following command. This script will check for Node.js and Yarn, clone the repository, install dependencies, and set up the CLI tool.
curl -sSL https://raw.githubusercontent.com/S1D007/redowl-cli/main/install.sh | bash
-
Clone the Repository:
git clone https://github.com/S1D007/redowl-cli cd redowl-cli
-
Install Dependencies:
pnpm install
-
Compile TypeScript Files:
pnpm run build
-
Link the CLI Globally:
pnpm run local-link
Once installed, you can use the redowl
command to start the CLI tool. Here are some basic commands:
-
Start the CLI:
redowl start --every 20m --for 20s
This command sets a reminder to blink every 20 minutes for 20 seconds.
-
Show Help:
redowl --help
RedOwl CLI supports both JSON and YAML configuration files for setting up custom intervals and durations.
Create a config.json
file with the following structure:
{
"every": "20m",
"for": "20s"
}
Create a config.yaml
file with the following structure:
every: "20m"
for: "20s"
We welcome contributions from the community! To contribute, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Make your changes and commit them with descriptive messages.
- Push your changes to your fork.
- Open a pull request to the
main
branch of the original repository.
Please ensure your code follows our coding standards and includes relevant tests.
This project is licensed under the MIT License. See the LICENSE file for details.