Skip to content

Commit

Permalink
build(deps): bump @oclif/core from 1.26.2 to 2.8.11 (#692)
Browse files Browse the repository at this point in the history
* build(deps): bump @oclif/core from 1.26.2 to 2.8.11

Bumps [@oclif/core](https://github.com/oclif/core) from 1.26.2 to 2.8.11.
- [Release notes](https://github.com/oclif/core/releases)
- [Changelog](https://github.com/oclif/core/blob/main/CHANGELOG.md)
- [Commits](oclif/core@1.26.2...2.8.11)

---
updated-dependencies:
- dependency-name: "@oclif/core"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* interim checkin (29 failures in run.test.js left)

* fix: last remaining issues

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Shazron Abdullah <36107+shazron@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and shazron committed Jul 14, 2023
1 parent 87f6c78 commit 1d3dfbe
Show file tree
Hide file tree
Showing 54 changed files with 167 additions and 157 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@adobe/generator-aio-app": "^5.1.0",
"@adobe/generator-app-common-lib": "^0.3.3",
"@adobe/inquirer-table-checkbox": "^1.2.0",
"@oclif/core": "^1.15.0",
"@oclif/core": "2.8.12",
"@parcel/core": "^2.7.0",
"@parcel/reporter-cli": "^2.7.0",
"ajv": "^8",
Expand All @@ -38,7 +38,9 @@
"inquirer": "^8",
"js-yaml": "^4.1.0",
"lodash.clonedeep": "^4.5.0",
"node-abort-controller": "^3.1.1",
"node-fetch": "^2.6.7",
"open": "^8.4.2",
"ora": "^5",
"pure-http": "^3",
"serve-static": "^1.14.1",
Expand Down
6 changes: 5 additions & 1 deletion src/BaseCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

const { AbortController } = require('node-abort-controller')
global.AbortController = AbortController

const { Command, Flags } = require('@oclif/core')
const chalk = require('chalk')
const coreConfig = require('@adobe/aio-lib-core-config')
Expand Down Expand Up @@ -176,6 +180,6 @@ BaseCommand.flags = {
version: Flags.boolean({ description: 'Show version' })
}

BaseCommand.args = []
BaseCommand.args = {}

module.exports = BaseCommand
2 changes: 1 addition & 1 deletion src/commands/app/add/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,6 @@ AddActionCommand.flags = {
}

AddActionCommand.aliases = ['app:add:actions']
AddActionCommand.args = []
AddActionCommand.args = {}

module.exports = AddActionCommand
2 changes: 1 addition & 1 deletion src/commands/app/add/ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ AddCICommand.flags = {
...BaseCommand.flags
}

AddCICommand.args = []
AddCICommand.args = {}

module.exports = AddCICommand
2 changes: 1 addition & 1 deletion src/commands/app/add/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ AddEventCommand.flags = {
}

AddEventCommand.aliases = ['app:add:events']
AddEventCommand.args = []
AddEventCommand.args = {}

module.exports = AddEventCommand
2 changes: 1 addition & 1 deletion src/commands/app/add/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ AddExtensionCommand.flags = {
}

AddExtensionCommand.aliases = ['app:add:ext', 'app:add:extensions']
AddExtensionCommand.args = []
AddExtensionCommand.args = {}

module.exports = AddExtensionCommand
2 changes: 1 addition & 1 deletion src/commands/app/add/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ class AddCommand extends BaseCommand {

AddCommand.description = 'Add a new component to an existing Adobe I/O App'

AddCommand.args = []
AddCommand.args = {}

module.exports = AddCommand
2 changes: 1 addition & 1 deletion src/commands/app/add/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@ AddServiceCommand.flags = {
}

AddServiceCommand.aliases = ['app:add:services']
AddServiceCommand.args = []
AddServiceCommand.args = {}

module.exports = AddServiceCommand
2 changes: 1 addition & 1 deletion src/commands/app/add/web-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ AddWebAssetsCommand.flags = {
...TemplatesCommand.flags
}

AddWebAssetsCommand.args = []
AddWebAssetsCommand.args = {}

module.exports = AddWebAssetsCommand
12 changes: 6 additions & 6 deletions src/commands/app/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ governing permissions and limitations under the License.

const BaseCommand = require('../../BaseCommand')
const InitCommand = require('./init')
const { Flags } = require('@oclif/core')
const { Flags, Args } = require('@oclif/core')

class Create extends BaseCommand {
async run () {
Expand All @@ -35,12 +35,12 @@ Create.flags = {
})
}

Create.args = [
Create.args =
{
name: 'path',
description: 'Path to the app directory',
default: '.'
path: Args.string({
description: 'Path to the app directory',
default: '.'
})
}
]

module.exports = Create
14 changes: 7 additions & 7 deletions src/commands/app/delete/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ governing permissions and limitations under the License.
const BaseCommand = require('../../../BaseCommand')
const inquirer = require('inquirer')
const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:delete:action', { provider: 'debug' })
const { Flags } = require('@oclif/core')
const { Flags, Args } = require('@oclif/core')
const fs = require('fs-extra')
const path = require('path')
const chalk = require('chalk')
Expand Down Expand Up @@ -153,14 +153,14 @@ DeleteActionCommand.flags = {
...BaseCommand.flags
}

DeleteActionCommand.args = [
DeleteActionCommand.args =
{
name: 'action-name',
description: 'Action `pkg/name` to delete, you can specify multiple actions via a comma separated list',
default: '',
required: false
'action-name': Args.string({
description: 'Action `pkg/name` to delete, you can specify multiple actions via a comma separated list',
default: '',
required: false
})
}
]

DeleteActionCommand.aliases = ['app:delete:actions']

Expand Down
2 changes: 1 addition & 1 deletion src/commands/app/delete/ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ DeleteCICommand.flags = {
...BaseCommand.flags
}

DeleteCICommand.args = []
DeleteCICommand.args = {}

module.exports = DeleteCICommand
12 changes: 6 additions & 6 deletions src/commands/app/delete/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ governing permissions and limitations under the License.

const BaseCommand = require('../../../BaseCommand')
const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:delete:event', { provider: 'debug' })
const { Flags } = require('@oclif/core')
const { Flags, Args } = require('@oclif/core')
const DeleteActionCommand = require('./action')
const chalk = require('chalk')

Expand Down Expand Up @@ -54,13 +54,13 @@ DeleteEventCommand.flags = {
...BaseCommand.flags
}

DeleteEventCommand.args = [
DeleteEventCommand.args =
{
name: 'event-action-name',
description: 'Action `pkg/name` to delete, you can specify multiple actions via a comma separated list',
required: false
'event-action-name': Args.string({
description: 'Action `pkg/name` to delete, you can specify multiple actions via a comma separated list',
required: false
})
}
]

DeleteEventCommand.aliases = ['app:delete:events']

Expand Down
2 changes: 1 addition & 1 deletion src/commands/app/delete/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ DeleteExtensionCommand.flags = {
}

DeleteExtensionCommand.aliases = ['app:delete:ext', 'app:delete:extensions']
DeleteExtensionCommand.args = []
DeleteExtensionCommand.args = {}

module.exports = DeleteExtensionCommand
2 changes: 1 addition & 1 deletion src/commands/app/delete/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ class DeleteCommand extends BaseCommand {

DeleteCommand.description = 'Delete a component from an existing Adobe I/O App'

DeleteCommand.args = []
DeleteCommand.args = {}

module.exports = DeleteCommand
2 changes: 1 addition & 1 deletion src/commands/app/delete/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ DeleteServiceCommand.flags = {
}

DeleteServiceCommand.aliases = ['app:delete:services']
DeleteServiceCommand.args = []
DeleteServiceCommand.args = {}

module.exports = DeleteServiceCommand
2 changes: 1 addition & 1 deletion src/commands/app/delete/web-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ DeleteWebAssetsCommand.flags = {
...BaseCommand.flags
}

DeleteWebAssetsCommand.args = []
DeleteWebAssetsCommand.args = {}

module.exports = DeleteWebAssetsCommand
7 changes: 4 additions & 3 deletions src/commands/app/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ governing permissions and limitations under the License.

const ora = require('ora')
const chalk = require('chalk')
const open = require('open')

const BaseCommand = require('../../BaseCommand')
const BuildCommand = require('./build')
const webLib = require('@adobe/aio-lib-web')
const { Flags, CliUx: { ux: cli } } = require('@oclif/core')
const { Flags } = require('@oclif/core')
const { createWebExportFilter, runInProcess, buildExtensionPointPayloadWoMetadata, buildExcShellViewExtensionMetadata } = require('../../lib/app-helper')
const rtLib = require('@adobe/aio-lib-runtime')
const LogForwarding = require('../../lib/log-forwarding')
Expand Down Expand Up @@ -241,7 +242,7 @@ class Deploy extends BuildCommand {
const launchUrl = this.getLaunchUrlPrefix() + deployedFrontendUrl
if (flags.open) {
this.log(chalk.blue(chalk.bold(`Opening your deployed application in the Experience Cloud shell:\n -> ${launchUrl}`)))
cli.open(launchUrl)
open(launchUrl)
} else {
this.log(chalk.blue(chalk.bold(`To view your deployed application in the Experience Cloud shell:\n -> ${launchUrl}`)))
}
Expand Down Expand Up @@ -375,6 +376,6 @@ Deploy.flags = {
})
}

Deploy.args = []
Deploy.args = {}

module.exports = Deploy
10 changes: 6 additions & 4 deletions src/commands/app/get-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ governing permissions and limitations under the License.

const chalk = require('chalk')

const { Flags } = require('@oclif/core')
const { Flags, Args } = require('@oclif/core')

const BaseCommand = require('../../BaseCommand')
const { wrapError } = require('../../lib/app-helper')
Expand Down Expand Up @@ -116,8 +116,10 @@ GetUrlCommand.flags = {
})
}

GetUrlCommand.args = [
{ name: 'action' }
]
GetUrlCommand.args =
{
action: Args.string({
})
}

module.exports = GetUrlCommand
2 changes: 1 addition & 1 deletion src/commands/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ class IndexCommand extends BaseCommand {

IndexCommand.description = 'Create, run, test, and deploy Adobe I/O Apps'

IndexCommand.args = []
IndexCommand.args = {}

module.exports = IndexCommand
2 changes: 1 addition & 1 deletion src/commands/app/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ Info.flags = {
})
}

Info.args = []
Info.args = {}

module.exports = Info
12 changes: 6 additions & 6 deletions src/commands/app/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const path = require('path')
const fs = require('fs-extra')
const ora = require('ora')
const chalk = require('chalk')
const { Flags } = require('@oclif/core')
const { Flags, Args } = require('@oclif/core')
const generators = require('@adobe/generator-aio-app')
const TemplateRegistryAPI = require('@adobe/aio-lib-templates')
const inquirer = require('inquirer')
Expand Down Expand Up @@ -400,12 +400,12 @@ InitCommand.flags = {
})
}

InitCommand.args = [
InitCommand.args =
{
name: 'path',
description: 'Path to the app directory',
default: '.'
path: Args.string({
description: 'Path to the app directory',
default: '.'
})
}
]

module.exports = InitCommand
12 changes: 6 additions & 6 deletions src/commands/app/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ governing permissions and limitations under the License.
*/

const BaseCommand = require('../../BaseCommand')
const { Flags } = require('@oclif/core')
const { Flags, Args } = require('@oclif/core')
const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:install', { provider: 'debug' })
const path = require('node:path')
const fs = require('fs-extra')
Expand Down Expand Up @@ -155,12 +155,12 @@ InstallCommand.flags = {
})
}

InstallCommand.args = [
InstallCommand.args =
{
name: 'path',
description: 'Path to the app package to install',
required: true
path: Args.string({
description: 'Path to the app package to install',
required: true
})
}
]

module.exports = InstallCommand
2 changes: 1 addition & 1 deletion src/commands/app/list/extension-points.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ ListExtensionPointsCommand.flags = {
}

ListExtensionPointsCommand.aliases = ['app:list:ext-points', 'app:list:extension-points']
ListExtensionPointsCommand.args = []
ListExtensionPointsCommand.args = {}

module.exports = ListExtensionPointsCommand
2 changes: 1 addition & 1 deletion src/commands/app/list/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ ListExtensionCommand.flags = {
}

ListExtensionCommand.aliases = ['app:list:ext', 'app:list:extensions']
ListExtensionCommand.args = []
ListExtensionCommand.args = {}

module.exports = ListExtensionCommand
2 changes: 1 addition & 1 deletion src/commands/app/list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ class ListCommand extends BaseCommand {

ListCommand.description = 'List components for Adobe I/O App'

ListCommand.args = []
ListCommand.args = {}

module.exports = ListCommand
12 changes: 6 additions & 6 deletions src/commands/app/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ governing permissions and limitations under the License.
*/

const BaseCommand = require('../../BaseCommand')
const { Flags } = require('@oclif/core')
const { Flags, Args } = require('@oclif/core')
const path = require('node:path')
const fs = require('fs-extra')
const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:pack', { provider: 'debug' })
Expand Down Expand Up @@ -285,12 +285,12 @@ Pack.flags = {
})
}

Pack.args = [
Pack.args =
{
name: 'path',
description: 'Path to the app directory to package',
default: '.'
path: Args.string({
description: 'Path to the app directory to package',
default: '.'
})
}
]

module.exports = Pack
Loading

0 comments on commit 1d3dfbe

Please sign in to comment.