From 07d1545643caeff7bd77804a3c12696f40fb448d Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 11 Oct 2023 13:27:34 +0000 Subject: [PATCH] chore: apply automated fixes --- src/cli.ts | 6 +++--- src/commands/copy.ts | 40 ++++++++++++++++++++-------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/cli.ts b/src/cli.ts index 5790db0..aa35a78 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -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); } diff --git a/src/commands/copy.ts b/src/commands/copy.ts index c411f2e..87e3c28 100644 --- a/src/commands/copy.ts +++ b/src/commands/copy.ts @@ -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"; @@ -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) { @@ -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); + } + }, +});