Skip to content

Commit b1080ac

Browse files
committed
chore: wip
1 parent 6bbc546 commit b1080ac

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function cloud(buddy: CLI) {
122122
}
123123

124124
log.info('')
125-
log.info('Please note, removing your cloud resources will take a while to complete. Please be patient.')
125+
log.info('ℹ️ Please note, removing your cloud resources will take a while to complete. Please be patient.')
126126
log.info('')
127127

128128
if (!await isFailedState()) {

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

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
/* eslint-disable no-console */
21
import process from 'node:process'
32
import type { CLI, DeployOptions } from '@stacksjs/types'
43
import { runAction } from '@stacksjs/actions'
5-
import { intro, italic, outro } from '@stacksjs/cli'
4+
import { intro, italic, log, outro } from '@stacksjs/cli'
65
import { Action, ExitCode } from '@stacksjs/types'
76
import { Route53 } from '@aws-sdk/client-route-53'
87
import { app } from '@stacksjs/config'
@@ -22,22 +21,22 @@ export function deploy(buddy: CLI) {
2221
const domain = options.domain || app.url
2322

2423
if (!domain) {
25-
console.log('We could not identify a domain to deploy to.')
26-
console.log('Please set your .env or ./config/app.ts properly.')
27-
console.log('')
28-
console.log('ℹ️ Alternatively, specify a domain to deploy via the `--domain` flag.')
29-
console.log('')
30-
console.log(' ➡️ Example: `buddy deploy --domain example.com`')
31-
console.log('')
24+
log.info('We could not identify a domain to deploy to.')
25+
log.info('Please set your .env or ./config/app.ts properly.')
26+
log.info('')
27+
log.info('ℹ️ Alternatively, specify a domain to deploy via the `--domain` flag.')
28+
log.info('')
29+
log.info(' ➡️ Example: `buddy deploy --domain example.com`')
30+
log.info('')
3231
process.exit(ExitCode.FatalError)
3332
}
3433

3534
if (await hasUserDomainBeenAddedToCloud(domain)) {
3635
log.info('')
3736
log.info('✅ Your domain is properly configured.')
38-
log.info('ℹ️ Your application is deploying...')
37+
log.info('ℹ️ Your cloud is deploying.')
3938
log.info('')
40-
log.info(italic('This may take a while to complete.'))
39+
log.info(italic('This may take a while...'))
4140
log.info('')
4241
await new Promise(resolve => setTimeout(resolve, 2000))
4342
options.domain = domain
@@ -46,12 +45,12 @@ export function deploy(buddy: CLI) {
4645
// if the domain hasn't been added to the user's (AWS) cloud, we will add it for them
4746
// and then exit the process with prompts for the user to update their nameservers
4847
else {
49-
console.log('')
50-
console.log(`👋 It appears to be your first ${italic(domain)} deployment.`)
51-
console.log('')
52-
console.log(italic('Let’s ensure it is all connected properly.'))
53-
console.log(italic('One moment...'))
54-
console.log('')
48+
log.info('')
49+
log.info(`👋 It appears to be your first ${italic(domain)} deployment.`)
50+
log.info('')
51+
log.info(italic('Let’s ensure it is all connected properly.'))
52+
log.info(italic('One moment...'))
53+
log.info('')
5554

5655
options.domain = domain
5756
await addDomain(options, perf)
@@ -72,7 +71,7 @@ export function deploy(buddy: CLI) {
7271
})
7372

7473
buddy.on('deploy:*', () => {
75-
console.error('Invalid command: %s\nSee --help for a list of available commands.', buddy.args.join(' '))
74+
log.error('Invalid command: %s\nSee --help for a list of available commands.', buddy.args.join(' '))
7675
process.exit(1)
7776
})
7877
}

0 commit comments

Comments
 (0)