adonisjs-scheduler
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -7,2 +7,3 @@ declare class ScheduleCommand { | ||
everyMinute(): this; | ||
everyFiveSeconds(): this; | ||
cron(expression: string): this; | ||
@@ -9,0 +10,0 @@ } |
@@ -31,2 +31,6 @@ "use strict"; | ||
} | ||
everyFiveSeconds() { | ||
this.expression = "*/5 * * * * *"; | ||
return this; | ||
} | ||
cron(expression) { | ||
@@ -33,0 +37,0 @@ this.expression = expression; |
import Scheduler from "@ioc:Adonis/Addons/Scheduler" | ||
Scheduler.command("inspire").everyMinute(); | ||
Scheduler.command("inspire").everyFiveSeconds(); |
{ | ||
"name": "adonisjs-scheduler", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -59,3 +59,4 @@ "homepage": "https://github.com/KABBOUCHI/adonisjs-scheduler#readme", | ||
"commands": [ | ||
"adonisjs-scheduler/build/commands" | ||
"adonisjs-scheduler/commands/SchedulerCommand", | ||
"adonisjs-scheduler/commands/InspireCommand" | ||
], | ||
@@ -62,0 +63,0 @@ "templates": { |
12947
248