We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80dddc commit 5857a29Copy full SHA for 5857a29
src/commands/init.ts
@@ -2,12 +2,11 @@ import { readFile, writeFile } from "node:fs/promises";
2
import { dirname, sep } from "node:path";
3
import { cwd } from "node:process";
4
import { pathToFileURL } from "node:url";
5
-import { parse } from "@bomb.sh/args";
6
import { x } from "tinyexec";
7
import type { CommandContext } from "../context.ts";
8
9
export async function init(ctx: CommandContext) {
10
- const [_name = '.', ...args] = ctx.args;
+ const [_name = '.'] = ctx.args;
11
const name = _name === '.' ? dirname(cwd()) : _name;
12
const dest = new URL("./.temp/", pathToFileURL([cwd(), sep].join("")));
13
for await (const line of x("pnpx", ["giget@latest", "gh:bombshell-dev/template", name])) {
0 commit comments