Skip to content

Commit

Permalink
Unify logic for the remaining commands
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-rr committed Nov 29, 2023
1 parent 66b349f commit 1cfc23d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/commands/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ export default class Bundle extends Command {
parser = new Parser();

async run() {
// Metrics recording when command is invoked
await this.recordActionInvoked('bundle');

const { argv, flags } = await this.parse(Bundle);
const output = flags.output;
let baseFile;
Expand Down
3 changes: 0 additions & 3 deletions src/commands/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ export default class Convert extends Command {
];

async run() {
// Metrics recording when command is invoked
await this.recordActionInvoked('convert');

const { args, flags } = await this.parse(Convert);
const filePath = args['spec-file'];
let specFile;
Expand Down
3 changes: 0 additions & 3 deletions src/commands/generate/fromTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ export default class Template extends Command {
parser = new Parser();

async run() {
// Metrics recording when command is invoked
await this.recordActionInvoked('generate_from_template');

const { args, flags } = await this.parse(Template); // NOSONAR

const asyncapi = args['asyncapi'];
Expand Down
3 changes: 0 additions & 3 deletions src/commands/optimize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ export default class Optimize extends Command {
parser = new Parser();

async run() {
// Metrics recording when command is invoked
await this.recordActionInvoked('optimize');

const { args, flags } = await this.parse(Optimize); //NOSONAR
const filePath = args['spec-file'];
let specFile: Specification;
Expand Down

0 comments on commit 1cfc23d

Please sign in to comment.