[ci] format
This commit is contained in:
parent
1d5b3f079d
commit
86acd0f1d5
2 changed files with 6 additions and 2 deletions
|
@ -6,7 +6,9 @@ import { info, log, title } from '../messages.js';
|
|||
|
||||
import { isEmpty, toValidName } from './shared.js';
|
||||
|
||||
export async function projectName(ctx: Pick<Context, 'cwd' | 'yes' | 'dryRun' | 'prompt' | 'projectName' | 'exit'>) {
|
||||
export async function projectName(
|
||||
ctx: Pick<Context, 'cwd' | 'yes' | 'dryRun' | 'prompt' | 'projectName' | 'exit'>
|
||||
) {
|
||||
await checkCwd(ctx.cwd);
|
||||
|
||||
if (!ctx.cwd || !isEmpty(ctx.cwd)) {
|
||||
|
|
|
@ -6,7 +6,9 @@ import fs from 'node:fs';
|
|||
import path from 'node:path';
|
||||
import { error, info, spinner, title } from '../messages.js';
|
||||
|
||||
export async function template(ctx: Pick<Context, 'template' | 'prompt' | 'yes' | 'dryRun' | 'exit'>) {
|
||||
export async function template(
|
||||
ctx: Pick<Context, 'template' | 'prompt' | 'yes' | 'dryRun' | 'exit'>
|
||||
) {
|
||||
if (ctx.yes) {
|
||||
ctx.template = 'basics';
|
||||
await info('tmpl', `Using ${color.reset(ctx.template)}${color.dim(' as project template')}`);
|
||||
|
|
Loading…
Reference in a new issue