Skip to content

Commit 1387f8b

Browse files
committed
🎉 (boost.ts) net subcommand is implemented
1 parent 00f3874 commit 1387f8b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

boost.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ const add = new Command()
3838

3939
const net = new Command()
4040
.arguments("<string>")
41-
.description("🚧 [WIP] Run remote task🌐")
42-
.action(() => {
43-
console.log("I'm sorry. This command is currently under development...🚧");
41+
.description("Run remote task🌐")
42+
.arguments("<url:string>")
43+
.action(async (opts: Record<string, string>, url: string) => {
44+
console.log(opts, url);
45+
import.meta.url = Deno.cwd();
46+
await execDeno(url);
4447
exit();
4548
});
4649

@@ -51,7 +54,7 @@ new Command()
5154
.command("get", get)
5255
.command("edit ", edit)
5356
.command("add", add)
54-
.command("run", net)
57+
.command("net", net)
5558
.parse();
5659

5760
const path = await selectScript();

0 commit comments

Comments
 (0)