0.0.32 • Published 6 months ago

breaklimit v0.0.32

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

breaklimit

The CLI to interact with https://breaklimit.vercel.app/.

Enjoy the Break Limit theme song while you get started.


Get Started

$ npm install -g breaklimit

Then choose the first option to sign up:

$ breaklimit

Read all the text carefully and follow the instructions.


Post Sign-Up Menu

You can run the CLI again without any flags to get additional options:

$ breaklimit

This will give you the following options:

❯ 1. Get Remaining Time
  2. Stop Timer
  3. Reset Token
  4. Set Token
  5. Delete User
  6. Update Preferences
  7. Exit
  1. Get Remaining Time: Will appear if a timer is active. Since CTRL+C will cancel the CLI but not the timer on the website, this way you can get the progress bar back to visualize the remaining time.

  2. Stop Timer: Will appear if a timer is active. It will reset the timer.

  3. Reset Token: Will reset the token and send a new token to your email. Use this if you've lost your token.

  4. Set Token: Will allow you to set an existing token. Use this if you want to use the CLI on a different device with the same user.

  5. Delete User: Will delete your user and all associated data.

  6. Update Preferences: Will allow you to update your preferences which will remember your preferences when you start a timer.


Start a timer

Example commands:

$ breaklimit --time 11:55 
$ breaklimit --minutes 0.5 --open
$ breaklimit --seconds 1500 --theme classic
$ breaklimit --minutes 15 --seconds 30

You can always run the following to get an overview of the flags:

$ breaklimit --help

Overview of commands:

CommandDescription
--openOpens the timer website in your chosen browser.
--time <type>Provide the time until the break ends in the format HH:MM or H:MM.
--minutes <number>Provide the length of the break in minutes.
--seconds <number>Provide the length of the break in seconds.
--get-timerGets the timer if active and displays it in the terminal.
--stop-timerResets the timer if active.
--theme <type>Change the theme of the stopwatch just once. Otherwise, consider changing your preferences.
--themesGet a list of available themes.

Menu Options Scenarios

These menu options can be invoked simply by running breaklimit:

ScenarioMenu Option
I don't have a userSign up
I have lost my tokenReset token
I want to use the CLI on a different deviceSet token
I uninstalled/reinstalled breaklimit and the token is no longer set but I have it in an emailGet it from the email -> Set token
I want to delete my user and my token is setDelete user
I want to delete my user and I have lost my tokenReset token -> Delete user
I want to change my preferences (public/private timer, default theme, voice)Update preferences

You will know if the token is set after running breaklimit and if you see a Sign Up option, the token is not set.


Permission errors

If you see an erno -13: EACCESS: Permission Denied error when trying to install the CLI, you do not have the right to install packages globally. There are three solutions:

  1. Use sudo: You only need to do this for operations that require write operations to your filesystem: installing, creating user, setting token and updating preferences. Running the CLI to start a timer does not require sudo.

  2. Change the default global directory for NPM.

  3. Fix permissions for the global directory:

$ sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}

Tips for Website Usage

The classic theme contains a QR code for your custom endpoint. It can be clicked to expand it for easy scanning.


Issues and Feature Requests

Feel free to open an issue on the GitHub repository.

0.0.30

6 months ago

0.0.31

6 months ago

0.0.32

6 months ago

0.0.28

6 months ago

0.0.29

6 months ago

0.0.21

7 months ago

0.0.2

7 months ago

0.0.22

7 months ago

0.0.23

7 months ago

0.0.24

7 months ago

0.0.25

7 months ago

0.0.26

7 months ago

0.0.27

7 months ago

0.0.1

1 year ago