Skip to content

Commit

Permalink
fix: fix cliux
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Aug 21, 2024
1 parent 1b67f6b commit 00aaf18
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
},
"dependencies": {
"@commercelayer/cli-core": "beta",
"@commercelayer/cli-ux": "^1.0.1",
"@commercelayer/sdk": "^6.13.0",
"@oclif/core": "4.0.17",
"cli-progress": "^3.12.0",
Expand Down
107 changes: 107 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/commands/resources/all.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

import Command, { Flags, cliux } from '../../base'
import Command, { Flags } from '../../base'
import { clApi, clToken, clColor, clUtil, clCommand, clConfig } from '@commercelayer/cli-core'
import type { CommerceLayerClient, QueryParamsList, ListResponse, Resource, QueryPageSize } from '@commercelayer/sdk'
import type { ArgOutput, FlagOutput, Input } from '@oclif/core/lib/interfaces/parser'
import notifier from 'node-notifier'
import cliProgress from 'cli-progress'
import cliux from '@commercelayer/cli-ux'


// const maxPagesWarning = 1000
Expand Down
3 changes: 2 additions & 1 deletion src/commands/resources/args.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Command, Flags, ux as cliux } from '@oclif/core'
import { Command, Flags } from '@oclif/core'
import { findResource, type ApiResource } from '../../util/resources'
import { deleteArgsFile, loadCommandData, readCommandArgs, type ResourceOperation } from '../../commands'
import { formatOutput } from '../../output'
import type { QueryParamsList } from '@commercelayer/sdk'
import { clOutput, clUtil, clColor } from '@commercelayer/cli-core'
import cliux from '@commercelayer/cli-ux'


export default class ResourcesArgs extends Command {
Expand Down
3 changes: 2 additions & 1 deletion src/commands/resources/filters.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Command, ux as cliux } from '@oclif/core'
import { Command } from '@oclif/core'
import { clUtil, clColor, clFilter } from '@commercelayer/cli-core'
import cliux from '@commercelayer/cli-ux'



Expand Down
3 changes: 2 additions & 1 deletion src/commands/resources/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Command, Flags, ux as cliux } from '@oclif/core'
import { Command, Flags } from '@oclif/core'
import { resourceList } from '../../util/resources'
import { clUtil, clColor, clConfig } from '@commercelayer/cli-core'
import type { CommandError } from '@oclif/core/lib/interfaces'
import cliux from '@commercelayer/cli-ux'


export default class ResourcesIndex extends Command {
Expand Down

0 comments on commit 00aaf18

Please sign in to comment.