Coder Social home page Coder Social logo

s1d007 / redowl-cli Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.23 MB

RedOwl CLI is a handy productivity tool designed to promote healthy eye habits while working on your computer. It reminds users to take regular breaks and blink their eyes to reduce eye strain and fatigue. With customizable intervals and durations, RedOwl helps you maintain optimal eye health and productivity throughout your workday.

Home Page: https://github.com/S1D007/redowl-cli

JavaScript 14.35% TypeScript 53.68% Shell 31.97%
break-reminder computer-vision-syndrome eye-strain healthy-habits productivity-tool selfcare blink-reminder reducing-eye-fatigue workplace-wellness

redowl-cli's Introduction

RedOwl CLI

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.

Table of Contents

  1. Features
  2. Installation
  3. Usage
  4. Configuration
  5. Contributing
  6. License

Features

  • 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.

Installation

Using the Script

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

Manual Installation

  1. Clone the Repository:

    git clone https://github.com/S1D007/redowl-cli
    cd redowl-cli
  2. Install Dependencies:

    pnpm install
  3. Compile TypeScript Files:

    pnpm run build
  4. Link the CLI Globally:

    pnpm run local-link

Usage

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

Configuration

RedOwl CLI supports both JSON and YAML configuration files for setting up custom intervals and durations.

JSON Configuration

Create a config.json file with the following structure:

{
  "every": "20m",
  "for": "20s"
}

YAML Configuration

Create a config.yaml file with the following structure:

every: "20m"
for: "20s"

Contributing

We welcome contributions from the community! To contribute, follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes and commit them with descriptive messages.
  4. Push your changes to your fork.
  5. Open a pull request to the main branch of the original repository.

Please ensure your code follows our coding standards and includes relevant tests.

License

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

redowl-cli's People

Contributors

s1d007 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.