Skip to content

Commit 07e62d6

Browse files
fixed color breakage
1 parent f976430 commit 07e62d6

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

packages/cli/src/commands/pg/pull.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {color} from '@heroku-cli/color'
21
import {Command, flags} from '@heroku-cli/command'
32
import {Args, ux} from '@oclif/core'
43
import tsheredoc from 'tsheredoc'
5-
import {utils, pg} from '@heroku/heroku-cli-util'
4+
import {color, utils, pg} from '@heroku/heroku-cli-util'
5+
// import {SpawnOptions, spawn} from 'node:child_process'
66
import childProcess from 'node:child_process'
77
import {nls} from '../../nls.js'
88
import {
@@ -32,8 +32,8 @@ export default class Pull extends Command {
3232
* a fully qualified URL to a local PostgreSQL server => TARGET must not exist and will be created
3333
* a fully qualified URL to a remote PostgreSQL server => TARGET must exist and be empty
3434
35-
To delete a local database run ${color.cmd('dropdb TARGET')}.
36-
To create an empty remote database, run ${color.cmd('createdb')} with connection command-line options (run ${color.cmd('createdb --help')} for details).
35+
To delete a local database run ${color.command('dropdb TARGET')}.
36+
To create an empty remote database, run ${color.command('createdb')} with connection command-line options (run ${color.command('createdb --help')} for details).
3737
`
3838

3939
static examples = [heredoc`

packages/cli/src/commands/pg/push.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import {color} from '@heroku-cli/color'
21
import {Command, flags} from '@heroku-cli/command'
32
import {Args, ux} from '@oclif/core'
43
import tsheredoc from 'tsheredoc'
5-
import {utils, pg} from '@heroku/heroku-cli-util'
4+
import {color, pg, utils} from '@heroku/heroku-cli-util'
65
import {
76
connArgs,
87
maybeTunnel,
@@ -27,7 +26,7 @@ export default class Push extends Command {
2726
push local or remote into Heroku database
2827
Push from SOURCE into TARGET. TARGET must be empty.
2928
30-
To empty a Heroku database for push run ${color.cmd('heroku pg:reset')}
29+
To empty a Heroku database for push run ${color.command('heroku pg:reset')}
3130
3231
SOURCE must be either the name of a database existing on your localhost or the
3332
fully qualified URL of a remote database.

packages/cli/src/commands/pg/reset.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import {utils} from '@heroku/heroku-cli-util'
2-
import {color} from '@heroku-cli/color'
1+
import {color, utils} from '@heroku/heroku-cli-util'
32
import {Command, flags} from '@heroku-cli/command'
43
import {Args, ux} from '@oclif/core'
54
import tsheredoc from 'tsheredoc'

0 commit comments

Comments
 (0)