Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename @adobe/generator-aio-console to @adobe/aio-cli-lib-console #167

Merged
merged 9 commits into from
Oct 6, 2021
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand All @@ -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`

Expand All @@ -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]`

Expand All @@ -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`

Expand All @@ -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`

Expand All @@ -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]`

Expand All @@ -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`

Expand All @@ -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`

Expand All @@ -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]`

Expand All @@ -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`

Expand All @@ -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]`

Expand All @@ -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)_
<!-- commandsstop -->
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/console/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion src/commands/console/workspace/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion test/commands/console/org/list.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
Expand Down
2 changes: 1 addition & 1 deletion test/commands/console/org/select.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
Expand Down
2 changes: 1 addition & 1 deletion test/commands/console/project/list.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
Expand Down
2 changes: 1 addition & 1 deletion test/commands/console/project/select.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
Expand Down
2 changes: 1 addition & 1 deletion test/commands/console/workspace/download.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
Expand Down
2 changes: 1 addition & 1 deletion test/commands/console/workspace/list.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
Expand Down
2 changes: 1 addition & 1 deletion test/commands/console/workspace/select.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
Expand Down