diff --git a/README.md b/README.md index b7ded57..47ba056 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ OPTIONS --help Show help ``` -_See code: [src/commands/console/index.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.1/src/commands/console/index.js)_ +_See code: [src/commands/console/index.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.2-next.1/src/commands/console/index.js)_ ## `aio console:org` @@ -80,7 +80,7 @@ OPTIONS --help Show help ``` -_See code: [src/commands/console/org/index.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.1/src/commands/console/org/index.js)_ +_See code: [src/commands/console/org/index.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.2-next.1/src/commands/console/org/index.js)_ ## `aio console:org:list` @@ -101,7 +101,7 @@ ALIASES $ aio console:org:ls ``` -_See code: [src/commands/console/org/list.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.1/src/commands/console/org/list.js)_ +_See code: [src/commands/console/org/list.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.2-next.1/src/commands/console/org/list.js)_ ## `aio console:org:select [ORGCODE]` @@ -123,7 +123,7 @@ ALIASES $ aio console:org:sel ``` -_See code: [src/commands/console/org/select.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.1/src/commands/console/org/select.js)_ +_See code: [src/commands/console/org/select.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.2-next.1/src/commands/console/org/select.js)_ ## `aio console:project` @@ -139,7 +139,7 @@ OPTIONS --help Show help ``` -_See code: [src/commands/console/project/index.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.1/src/commands/console/project/index.js)_ +_See code: [src/commands/console/project/index.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.2-next.1/src/commands/console/project/index.js)_ ## `aio console:project:list` @@ -161,7 +161,7 @@ ALIASES $ aio console:project:ls ``` -_See code: [src/commands/console/project/list.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.1/src/commands/console/project/list.js)_ +_See code: [src/commands/console/project/list.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.2-next.1/src/commands/console/project/list.js)_ ## `aio console:project:select [PROJECTIDORNAME]` @@ -184,7 +184,7 @@ ALIASES $ aio console:project:sel ``` -_See code: [src/commands/console/project/select.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.1/src/commands/console/project/select.js)_ +_See code: [src/commands/console/project/select.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.2-next.1/src/commands/console/project/select.js)_ ## `aio console:where` @@ -205,7 +205,7 @@ ALIASES $ aio where ``` -_See code: [src/commands/console/where/index.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.1/src/commands/console/where/index.js)_ +_See code: [src/commands/console/where/index.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.2-next.1/src/commands/console/where/index.js)_ ## `aio console:workspace` @@ -224,7 +224,7 @@ ALIASES $ aio console:ws ``` -_See code: [src/commands/console/workspace/index.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.1/src/commands/console/workspace/index.js)_ +_See code: [src/commands/console/workspace/index.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.2-next.1/src/commands/console/workspace/index.js)_ ## `aio console:workspace:download [DESTINATION]` @@ -251,7 +251,7 @@ ALIASES $ aio console:ws:dl ``` -_See code: [src/commands/console/workspace/download.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.1/src/commands/console/workspace/download.js)_ +_See code: [src/commands/console/workspace/download.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.2-next.1/src/commands/console/workspace/download.js)_ ## `aio console:workspace:list` @@ -276,7 +276,7 @@ ALIASES $ aio console:ws:ls ``` -_See code: [src/commands/console/workspace/list.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.1/src/commands/console/workspace/list.js)_ +_See code: [src/commands/console/workspace/list.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.2-next.1/src/commands/console/workspace/list.js)_ ## `aio console:workspace:select [WORKSPACEIDORNAME]` @@ -302,5 +302,5 @@ ALIASES $ aio console:ws:sel ``` -_See code: [src/commands/console/workspace/select.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.1/src/commands/console/workspace/select.js)_ +_See code: [src/commands/console/workspace/select.js](https://github.com/adobe/aio-cli-plugin-console/blob/3.4.2-next.1/src/commands/console/workspace/select.js)_ diff --git a/package.json b/package.json index 31a4266..22aa805 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "@adobe/aio-lib-core-config": "^2.0.0", "@adobe/aio-lib-core-logging": "^1.1.0", "@adobe/aio-lib-env": "^1.1.0", - "@adobe/aio-lib-ims": "^4.0.0", - "@adobe/generator-aio-console": "^2.2.0", + "@adobe/aio-lib-ims": "^5.0.0", + "@adobe/aio-cli-lib-console": "^3.0.0", "@oclif/command": "^1", "@oclif/config": "1.15.1", "@oclif/errors": "^1.1.2", diff --git a/src/commands/console/index.js b/src/commands/console/index.js index 174b023..6659b96 100644 --- a/src/commands/console/index.js +++ b/src/commands/console/index.js @@ -14,7 +14,7 @@ const aioConsoleLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli- const config = require('@adobe/aio-lib-core-config') const { Command, flags } = require('@oclif/command') const { getToken } = require('@adobe/aio-lib-ims') -const LibConsoleCLI = require('@adobe/generator-aio-console/lib/console-cli') +const LibConsoleCLI = require('@adobe/aio-cli-lib-console') const { CLI } = require('@adobe/aio-lib-ims/src/context') const Help = require('@oclif/plugin-help').default const yaml = require('js-yaml') diff --git a/src/commands/console/workspace/download.js b/src/commands/console/workspace/download.js index 60f8fcc..76a06fa 100644 --- a/src/commands/console/workspace/download.js +++ b/src/commands/console/workspace/download.js @@ -14,7 +14,7 @@ const path = require('path') const ConsoleCommand = require('../index') const aioConsoleLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-console:workspace:download', { provider: 'debug' }) const { CONFIG_KEYS } = require('../../../config') -const LibConsoleCLI = require('@adobe/generator-aio-console/lib/console-cli') +const LibConsoleCLI = require('@adobe/aio-cli-lib-console') const fs = require('fs') class DownloadCommand extends ConsoleCommand { diff --git a/test/commands/console/org/list.test.js b/test/commands/console/org/list.test.js index 6d64f6d..f7121f6 100644 --- a/test/commands/console/org/list.test.js +++ b/test/commands/console/org/list.test.js @@ -21,7 +21,7 @@ function setDefaultMockConsoleCLI () { { id: 3, code: 'CODE03', name: 'ORG03', type: 'not_entp' } ]) } -jest.mock('@adobe/generator-aio-console/lib/console-cli', () => ({ +jest.mock('@adobe/aio-cli-lib-console', () => ({ init: jest.fn().mockResolvedValue(mockConsoleCLIInstance), cleanStdOut: jest.fn() })) diff --git a/test/commands/console/org/select.test.js b/test/commands/console/org/select.test.js index d6c12b3..11092df 100644 --- a/test/commands/console/org/select.test.js +++ b/test/commands/console/org/select.test.js @@ -24,7 +24,7 @@ function setDefaultMockConsoleCLI () { mockConsoleCLIInstance.getOrganizations = jest.fn().mockResolvedValue(orgs) mockConsoleCLIInstance.promptForSelectOrganization = jest.fn().mockResolvedValue(selectedOrg) } -jest.mock('@adobe/generator-aio-console/lib/console-cli', () => ({ +jest.mock('@adobe/aio-cli-lib-console', () => ({ init: jest.fn().mockResolvedValue(mockConsoleCLIInstance), cleanStdOut: jest.fn() })) diff --git a/test/commands/console/project/list.test.js b/test/commands/console/project/list.test.js index c89a482..ec748bf 100644 --- a/test/commands/console/project/list.test.js +++ b/test/commands/console/project/list.test.js @@ -45,7 +45,7 @@ const mockConsoleCLIInstance = {} function setDefaultMockConsoleCLI () { mockConsoleCLIInstance.getProjects = jest.fn().mockResolvedValue(projects) } -jest.mock('@adobe/generator-aio-console/lib/console-cli', () => ({ +jest.mock('@adobe/aio-cli-lib-console', () => ({ init: jest.fn().mockResolvedValue(mockConsoleCLIInstance), cleanStdOut: jest.fn() })) diff --git a/test/commands/console/project/select.test.js b/test/commands/console/project/select.test.js index 5e28d71..d7cc385 100644 --- a/test/commands/console/project/select.test.js +++ b/test/commands/console/project/select.test.js @@ -44,7 +44,7 @@ function setDefaultMockConsoleCLI () { mockConsoleCLIInstance.promptForSelectProject = jest.fn().mockResolvedValue(selectedProject) } -jest.mock('@adobe/generator-aio-console/lib/console-cli', () => ({ +jest.mock('@adobe/aio-cli-lib-console', () => ({ init: jest.fn().mockResolvedValue(mockConsoleCLIInstance), cleanStdOut: jest.fn() })) diff --git a/test/commands/console/workspace/download.test.js b/test/commands/console/workspace/download.test.js index 173eed8..ac5da3e 100644 --- a/test/commands/console/workspace/download.test.js +++ b/test/commands/console/workspace/download.test.js @@ -28,7 +28,7 @@ function setDefaultMockConsoleCLI () { mockConsoleCLIInstance.getWorkspaceConfig = jest.fn() mockConsoleCLIInstance.getWorkspaceConfig.mockResolvedValue(fakeConfig) } -jest.mock('@adobe/generator-aio-console/lib/console-cli', () => ({ +jest.mock('@adobe/aio-cli-lib-console', () => ({ init: jest.fn().mockResolvedValue(mockConsoleCLIInstance), cleanStdOut: jest.fn() })) diff --git a/test/commands/console/workspace/list.test.js b/test/commands/console/workspace/list.test.js index a4acad8..afb1895 100644 --- a/test/commands/console/workspace/list.test.js +++ b/test/commands/console/workspace/list.test.js @@ -25,7 +25,7 @@ const mockConsoleCLIInstance = {} function setDefaultMockConsoleCLI () { mockConsoleCLIInstance.getWorkspaces = jest.fn().mockResolvedValue(workspaces) } -jest.mock('@adobe/generator-aio-console/lib/console-cli', () => ({ +jest.mock('@adobe/aio-cli-lib-console', () => ({ init: jest.fn().mockResolvedValue(mockConsoleCLIInstance), cleanStdOut: jest.fn() })) diff --git a/test/commands/console/workspace/select.test.js b/test/commands/console/workspace/select.test.js index ad84e1b..feba054 100644 --- a/test/commands/console/workspace/select.test.js +++ b/test/commands/console/workspace/select.test.js @@ -26,7 +26,7 @@ function setDefaultMockConsoleCLI () { mockConsoleCLIInstance.getWorkspaces = jest.fn().mockResolvedValue(workspaces) mockConsoleCLIInstance.promptForSelectWorkspace = jest.fn().mockResolvedValue(selectedWorkspace) } -jest.mock('@adobe/generator-aio-console/lib/console-cli', () => ({ +jest.mock('@adobe/aio-cli-lib-console', () => ({ init: jest.fn().mockResolvedValue(mockConsoleCLIInstance), cleanStdOut: jest.fn() }))