Skip to content

Commit

Permalink
chore: apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] committed Oct 11, 2023
1 parent 4334379 commit 07d1545
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const mainCommand = defineCommand({
subCommands: {
// eslint-disable-next-line unicorn/prefer-top-level-await
copy: import("./commands/copy").then((m) => m.default),
}
})
},
});

export function runMain() {
return _runMain(mainCommand)
return _runMain(mainCommand);
}
40 changes: 20 additions & 20 deletions src/commands/copy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { relative } from "node:path"
import { relative } from "node:path";
import { defineCommand } from "citty";
import { consola } from "consola";
import { cyan } from "colorette";
Expand All @@ -21,36 +21,36 @@ export default defineCommand({
},
auth: {
type: "string",
description: "Authentication token for private templates"
description: "Authentication token for private templates",
},
cwd: {
type: "string",
description: "Current working directory"
description: "Current working directory",
},
force: {
type: "boolean",
description: "Force copy even if the directory is not empty"
description: "Force copy even if the directory is not empty",
},
forceClean: {
type: "boolean",
description: "Force clean the directory before copying"
description: "Force clean the directory before copying",
},
offline: {
type: "boolean",
description: "Force offline using local cache"
description: "Force offline using local cache",
},
preferOffline: {
type: "boolean",
description: "Prefer offline using local cache if available"
description: "Prefer offline using local cache if available",
},
shell: {
type: "boolean",
description: "Start a shell in the template directory"
description: "Start a shell in the template directory",
},
verbose: {
type: "boolean",
description: "Enable verbose logging"
}
description: "Enable verbose logging",
},
},
run: async ({ args }) => {
if (args.verbose) {
Expand All @@ -66,14 +66,14 @@ export default defineCommand({
auth: args.auth,
});

consola.log(
`✨ Successfully cloned ${cyan(r.name || r.url)} to ${cyan(
relative(process.cwd(), r.dir),
)}\n`,
);
consola.log(
`✨ Successfully cloned ${cyan(r.name || r.url)} to ${cyan(
relative(process.cwd(), r.dir),
)}\n`,
);

if (args.shell) {
startShell(r.dir);
}
}
})
if (args.shell) {
startShell(r.dir);
}
},
});

0 comments on commit 07d1545

Please sign in to comment.