Skip to content

Commit

Permalink
WIP add json logic
Browse files Browse the repository at this point in the history
  • Loading branch information
zwhitfield3 committed Dec 1, 2023
1 parent 75d18ac commit 8755225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cli/src/commands/doctor/ask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import color from '@heroku-cli/color'
import {Command, flags} from '@heroku-cli/command'
import * as Heroku from '@heroku-cli/schema'
import {Args, ux} from '@oclif/core'
// const Font = require('ascii-art-font')
// Font.fontPath = '../../../lib/doctor/font'

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

const dialogue = {
question: args.question,
response: herokAIResponse,
response: herokAIJsonResponse,
}

if (flags.json) {
Expand Down
File renamed without changes.

0 comments on commit 8755225

Please sign in to comment.