https://github.com/sindresorhus/lungo-cli
Control the Lungo app from the command-line
https://github.com/sindresorhus/lungo-cli
cli-app command-line-tool lungo macos nodejs npm-package
Last synced: 11 months ago
JSON representation
Control the Lungo app from the command-line
- Host: GitHub
- URL: https://github.com/sindresorhus/lungo-cli
- Owner: sindresorhus
- License: mit
- Created: 2018-10-24T01:26:47.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-08-17T00:35:38.000Z (over 1 year ago)
- Last Synced: 2024-10-29T22:38:28.342Z (over 1 year ago)
- Topics: cli-app, command-line-tool, lungo, macos, nodejs, npm-package
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 47
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-list - lungo-cli - line | sindresorhus | 36 | (JavaScript)
README
# lungo-cli
> Control the [Lungo app](https://sindresorhus.com/lungo) from the command-line
## Install
```sh
npm install --global lungo-cli
```
*Requires [Node.js 14](https://nodejs.org).*
**Important: The `is-active` command requires you to install [this shortcut](https://www.icloud.com/shortcuts/4ad26c6b33724132ad6af18463fd451c) first.**
## Usage
```
$ lungo --help
Usage
$ lungo [command]
Commands
on
off
toggle
is-active
Options
--hours -h Hours Lungo should be active
--minutes -m Minutes Lungo should be active
Examples
$ lungo on --hours=1 --minutes=10
$ lungo on
$ lungo off
$ lungo toggle --hours=1.5
$ lungo
$ lungo is-active
true
If you don't specify a duration, it will use the default duration.
You can also toggle by leaving out the command.
```