Skip to content

Commit 00f3874

Browse files
committed
✨ (boost.ts) rename the subcommand from run to net
1 parent 9176871 commit 00f3874

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

boost.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { selectScript } from "./selector.ts";
22
import { Command } from "https://deno.land/x/cliffy@v0.19.2/command/mod.ts";
33
import { execDeno, exit } from "./utils.ts";
4+
import { addTask } from "./cmds/add.ts";
45

56
const get = new Command()
67
.arguments("<string>")
@@ -29,14 +30,13 @@ const edit = new Command()
2930
const add = new Command()
3031
.arguments("<string>")
3132
.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();
3636
exit();
3737
});
3838

39-
const run = new Command()
39+
const net = new Command()
4040
.arguments("<string>")
4141
.description("🚧 [WIP] Run remote task🌐")
4242
.action(() => {
@@ -51,7 +51,7 @@ new Command()
5151
.command("get", get)
5252
.command("edit ", edit)
5353
.command("add", add)
54-
.command("run", run)
54+
.command("run", net)
5555
.parse();
5656

5757
const path = await selectScript();

0 commit comments

Comments
 (0)