Skip to content

Commit

Permalink
fix: fixed imports for getAccount and getProfileAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredx87 committed Aug 8, 2023
1 parent 4f38e0b commit f38c5d1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/zcli-core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { default as Auth } from './lib/auth'
export { getAccount, getProfileFromAccount } from './lib/authUtils'
export { default as Config } from './lib/config'
export { default as SecureStore } from './lib/secureStore'
export { getBaseUrl } from './lib/requestUtils'
Expand Down
3 changes: 1 addition & 2 deletions packages/zcli/src/commands/login.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Command, Flags } from '@oclif/core'
import * as chalk from 'chalk'
import { SecureStore, Auth } from '@zendesk/zcli-core'
import { SecureStore, Auth, getAccount } from '@zendesk/zcli-core'
import { HELP_ENV_VARS } from '../utils/helpMessage'
import { getAccount } from '@zendesk/zcli-core/src/lib/authUtils'

export default class Login extends Command {
static description = 'creates and/or saves an authentication token for the specified subdomain'
Expand Down
3 changes: 1 addition & 2 deletions packages/zcli/src/commands/profiles/list.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Command, CliUx } from '@oclif/core'
import * as chalk from 'chalk'
import { Auth, SecureStore } from '@zendesk/zcli-core'
import { Auth, SecureStore, getAccount } from '@zendesk/zcli-core'
import { Credential, Profile } from '@zendesk/zcli-core/src/types'
import { HELP_ENV_VARS } from '../../utils/helpMessage'
import { getAccount } from '@zendesk/zcli-core/src/lib/authUtils'

export default class List extends Command {
static description = 'lists all the profiles'
Expand Down
3 changes: 1 addition & 2 deletions packages/zcli/src/commands/profiles/use.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Command } from '@oclif/core'
import * as chalk from 'chalk'
import { SecureStore, Auth } from '@zendesk/zcli-core'
import { SecureStore, Auth, getProfileFromAccount } from '@zendesk/zcli-core'
import { HELP_ENV_VARS } from '../../utils/helpMessage'
import { getProfileFromAccount } from '@zendesk/zcli-core/src/lib/authUtils'

export default class Remove extends Command {
static description = 'switches to a profile'
Expand Down

0 comments on commit f38c5d1

Please sign in to comment.