Skip to content

Commit

Permalink
one ring to rule them all
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Oct 9, 2024
1 parent fe87319 commit cf4a458
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/BaseCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const {
} = require('@adobe/aio-lib-env')

class BaseCommand extends Command {

Check failure on line 33 in src/BaseCommand.js

View workflow job for this annotation

GitHub Actions / build / build (18.x, ubuntu-latest)

Block must not be padded by blank lines

Check failure on line 33 in src/BaseCommand.js

View workflow job for this annotation

GitHub Actions / build / build (20.x, ubuntu-latest)

Block must not be padded by blank lines

// default error handler for app commands
async catch (error) {
const { flags } = await this.parse(this.prototype)
Expand All @@ -42,6 +43,7 @@ class BaseCommand extends Command {
await super.init()
// setup a prompt that outputs to stderr
this.prompt = inquirer.createPromptModule({ output: process.stderr })
process.env.__OW_USER_AGENT = 'aio-cli-plugin-app@' + require('../package.json').version
}

async getLibConsoleCLI () {
Expand Down
1 change: 0 additions & 1 deletion src/commands/app/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class Deploy extends BuildCommand {
// cli input
const { flags } = await this.parse(Deploy)

process.env.__OW_USER_AGENT = 'aio-cli-plugin-app@' + require('../../../package.json').version
// flags
flags['web-assets'] = flags['web-assets'] && !flags.action
flags.publish = flags.publish && !flags.action
Expand Down
1 change: 0 additions & 1 deletion src/commands/app/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class Run extends BaseCommand {
// cli input
const { flags } = await this.parse(Run)

process.env.__OW_USER_AGENT = 'aio-cli-plugin-app@' + require('../../../package.json').version
if (flags.local) {
const [firstCpu] = os.cpus()
// note: the earliest versions of M1 macs return 'Apple processor' under model.
Expand Down

0 comments on commit cf4a458

Please sign in to comment.