-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(command): add a command to execut cron jobs with running deno ta…
…sk command:local
- Loading branch information
1 parent
dd4b7fb
commit 9dd2916
Showing
7 changed files
with
52 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"imports": { | ||
"$common": "./src/common/index.ts", | ||
"$deps": "./src/deps/index.ts", | ||
"$controllers": "./src/api/modules/v1/controllers/index.ts", | ||
"$controller/": "./src/api/modules/v1/controllers/", | ||
"$services": "./src/api/modules/v1/services/index.ts", | ||
"$service/": "./src/api/modules/v1/services/", | ||
"$repositories": "./src/api/modules/v1/repository/index.ts", | ||
"$repository/": "./src/api/modules/v1/repository/", | ||
"$components": "./src/api/modules/v1/components/index.ts", | ||
"$component/": "./src/api/modules/v1/components/", | ||
"$middlewares": "./src/api/middlewares/index.ts", | ||
"$models": "./src/api/modules/v1/models/index.ts", | ||
"$interfaces": "./src/common/interfaces/index.ts", | ||
"$enums": "./src/common/enums/index.ts", | ||
"$migrations": "./src/api/db/migrations/index.ts", | ||
"$routes": "./src/api/modules/v1/routes/index.ts", | ||
"$db": "./src/api/db/index.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Slinger } from "$component/Jobs/Slinger.ts"; | ||
|
||
export class Commands { | ||
private slingerArg = 0; | ||
|
||
constructor() { | ||
this.init(); | ||
} | ||
|
||
private init() { | ||
return this.slinger(); | ||
} | ||
|
||
private async slinger() { | ||
const command = Deno.args[this.slingerArg]; | ||
|
||
if (command !== '--slinger') return; | ||
|
||
new Slinger(); | ||
} | ||
} | ||
|
||
export default new Commands(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import S3 from "./AWS/s3.component.ts"; | ||
import SQS from "./AWS/sqs.component.ts"; | ||
import Slinger from "./Commands/Slinger.ts"; | ||
|
||
export { | ||
S3, | ||
SQS, | ||
Slinger | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters