Skip to content

Commit 5857a29

Browse files
committed
refactor: cleanup init
1 parent a80dddc commit 5857a29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/commands/init.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ import { readFile, writeFile } from "node:fs/promises";
22
import { dirname, sep } from "node:path";
33
import { cwd } from "node:process";
44
import { pathToFileURL } from "node:url";
5-
import { parse } from "@bomb.sh/args";
65
import { x } from "tinyexec";
76
import type { CommandContext } from "../context.ts";
87

98
export async function init(ctx: CommandContext) {
10-
const [_name = '.', ...args] = ctx.args;
9+
const [_name = '.'] = ctx.args;
1110
const name = _name === '.' ? dirname(cwd()) : _name;
1211
const dest = new URL("./.temp/", pathToFileURL([cwd(), sep].join("")));
1312
for await (const line of x("pnpx", ["giget@latest", "gh:bombshell-dev/template", name])) {

0 commit comments

Comments
 (0)