@@ -2,7 +2,7 @@ import process from 'node:process'
2
2
import type { CLI , DomainsOptions } from '@stacksjs/types'
3
3
import { runAction } from '@stacksjs/actions'
4
4
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'
6
6
import { Action , ExitCode } from '@stacksjs/types'
7
7
import { addDomain } from './deploy'
8
8
@@ -58,7 +58,8 @@ export function domains(buddy: CLI) {
58
58
. option ( '--privacy-registrant' , 'Enable privacy protection for registrant' , { default : config . dns . contactInfo ?. privacyRegistrant || config . dns . contactInfo ?. privacy } )
59
59
. option ( '--contact-type <type>' , 'Contact type' , { default : 'person' } )
60
60
. option ( '--verbose' , descriptions . verbose , { default : false } )
61
- . action ( async ( options : DomainsOptions ) => {
61
+ . action ( async ( domain : string , options : DomainsOptions ) => {
62
+ options . domain = domain
62
63
const startTime = await intro ( 'buddy domains:purchase' )
63
64
const result = await runAction ( Action . DomainsPurchase , options )
64
65
@@ -67,8 +68,6 @@ export function domains(buddy: CLI) {
67
68
process . exit ( ExitCode . FatalError )
68
69
}
69
70
70
- // prompt to set the domain the APP_URL
71
- const domain = options . domain
72
71
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
73
72
const { confirm } = await prompts ( {
74
73
name : 'confirm' ,
0 commit comments