+3
-3
@@ -26,3 +26,3 @@ #!/usr/bin/env node | ||
| function sleep(obj, str, reverse) { | ||
| function log(obj, str, reverse) { | ||
| var arr = Object.keys(obj).map(function (el) { | ||
@@ -41,6 +41,6 @@ return ' ' + chalk.dim(el + ' cycles ') + chalk.bold(obj[el]); | ||
| if (cli.flags.wake) { | ||
| sleep(cycles.wake(cli.flags.wake), 'Fall asleep at the end of a cycle to feel more refreshed in the morning.', true); | ||
| log(cycles.wake(cli.flags.wake), 'Fall asleep at a certain time to feel more refreshed in the morning.', true); | ||
| return; | ||
| } | ||
| sleep(cycles.sleep(cli.input[0] || ''), 'Wake up at the end of a cycle to feel more refreshed in the morning.'); | ||
| log(cycles.sleep(cli.input[0] || ''), 'Wake up at the end of a cycle to feel more refreshed in the morning.'); |
+1
-1
| { | ||
| "name": "cycles", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "Calculate sleep cycles to wake up more refreshed.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
4963
-0.2%