File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { selectScript } from "./selector.ts" ;
2
2
import { Command } from "https://deno.land/x/cliffy@v0.19.2/command/mod.ts" ;
3
3
import { execDeno , exit } from "./utils.ts" ;
4
+ import { addTask } from "./cmds/add.ts" ;
4
5
5
6
const get = new Command ( )
6
7
. arguments ( "<string>" )
@@ -29,14 +30,13 @@ const edit = new Command()
29
30
const add = new Command ( )
30
31
. arguments ( "<string>" )
31
32
. description ( "🚧 [WIP] Add your task⚡" )
32
- . action ( ( ) => {
33
- console . log (
34
- "I'm sorry. This command is currently under development...🚧" ,
35
- ) ;
33
+ . action ( async ( ) => {
34
+ await addTask ( ) ;
35
+ exit ( ) ;
36
36
exit ( ) ;
37
37
} ) ;
38
38
39
- const run = new Command ( )
39
+ const net = new Command ( )
40
40
. arguments ( "<string>" )
41
41
. description ( "🚧 [WIP] Run remote task🌐" )
42
42
. action ( ( ) => {
@@ -51,7 +51,7 @@ new Command()
51
51
. command ( "get" , get )
52
52
. command ( "edit " , edit )
53
53
. command ( "add" , add )
54
- . command ( "run" , run )
54
+ . command ( "run" , net )
55
55
. parse ( ) ;
56
56
57
57
const path = await selectScript ( ) ;
You can’t perform that action at this time.
0 commit comments