Skip to content

Commit da9b7ea

Browse files
committed
chore: wip
1 parent 20cbc8b commit da9b7ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.stacks/core/buddy/src/commands/domains.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import process from 'node:process'
22
import type { CLI, DomainsOptions } from '@stacksjs/types'
33
import { runAction } from '@stacksjs/actions'
44
import { config } from '@stacksjs/config'
5-
import { bgCyan, bold, intro, italic, outro, prompts } from '@stacksjs/cli'
5+
import { bgCyan, bold, dd, intro, italic, outro, prompts } from '@stacksjs/cli'
66
import { Action, ExitCode } from '@stacksjs/types'
77
import { addDomain } from './deploy'
88

@@ -58,7 +58,8 @@ export function domains(buddy: CLI) {
5858
.option('--privacy-registrant', 'Enable privacy protection for registrant', { default: config.dns.contactInfo?.privacyRegistrant || config.dns.contactInfo?.privacy })
5959
.option('--contact-type <type>', 'Contact type', { default: 'person' })
6060
.option('--verbose', descriptions.verbose, { default: false })
61-
.action(async (options: DomainsOptions) => {
61+
.action(async (domain: string, options: DomainsOptions) => {
62+
options.domain = domain
6263
const startTime = await intro('buddy domains:purchase')
6364
const result = await runAction(Action.DomainsPurchase, options)
6465

@@ -67,8 +68,6 @@ export function domains(buddy: CLI) {
6768
process.exit(ExitCode.FatalError)
6869
}
6970

70-
// prompt to set the domain the APP_URL
71-
const domain = options.domain
7271
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
7372
const { confirm } = await prompts({
7473
name: 'confirm',

.stacks/core/cli/src/console.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export class Prompt {
7474
}
7575
}
7676

77-
export { prompts, log }
77+
const dd = log.dd
78+
export { prompts, log, dd }
7879

7980
export const prompt = new Prompt()

0 commit comments

Comments
 (0)