Skip to content

Commit 8755225

Browse files
committed
WIP add json logic
1 parent 75d18ac commit 8755225

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/cli/src/commands/doctor/ask.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import color from '@heroku-cli/color'
22
import {Command, flags} from '@heroku-cli/command'
33
import * as Heroku from '@heroku-cli/schema'
44
import {Args, ux} from '@oclif/core'
5+
// const Font = require('ascii-art-font')
6+
// Font.fontPath = '../../../lib/doctor/font'
57

68
export default class DoctorAsk extends Command {
79
static description = 'recieve responses from HerokAI'
@@ -21,10 +23,11 @@ export default class DoctorAsk extends Command {
2123
const {body: user} = await this.heroku.get<Heroku.Account>('/account', {retryAuth: false})
2224
const userName = (user && user.name) ? ` ${user.name}` : ''
2325
const herokAIResponse = `${color.heroku(`Hi${userName},`)} \n\nI'm just a concept right now. Remember?`
26+
const herokAIJsonResponse = `Hi${userName}, I'm just a concept right now. Remember?`
2427

2528
const dialogue = {
2629
question: args.question,
27-
response: herokAIResponse,
30+
response: herokAIJsonResponse,
2831
}
2932

3033
if (flags.json) {

0 commit comments

Comments
 (0)