Skip to content

Commit

Permalink
fix for warning message.
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-raj committed Oct 10, 2023
1 parent 7e12472 commit 3985bdc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
11 changes: 0 additions & 11 deletions packages/contentstack-auth/src/base-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,13 @@ export abstract class BaseCommand<T extends typeof Command> extends Command {
protected args!: Args<T>;
protected flags!: Flags<T>;

// NOTE define flags that can be inherited by any command that extends BaseCommand
static baseFlags: FlagInput = {};

/**
* The `init` function initializes the command by parsing arguments and flags, registering search
* plugins, registering the configuration, and initializing the logger.
*/
public async init(): Promise<void> {
await super.init();
const { args, flags } = await this.parse({
flags: this.ctor.flags,
baseFlags: (super.ctor as typeof BaseCommand).baseFlags,
args: this.ctor.args,
strict: this.ctor.strict,
});
this.flags = flags as Flags<T>;
this.args = args as Args<T>;

// Init logger
this.logger = new LoggerService(process.cwd(), 'cli-log');
}
Expand Down
10 changes: 0 additions & 10 deletions packages/contentstack-config/src/base-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,13 @@ export abstract class BaseCommand<T extends typeof Command> extends Command {
protected args!: Args<T>;
protected flags!: Flags<T>;

// NOTE define flags that canin be inherited by any command that extends BaseCommand
static baseFlags: FlagInput = {};
static args: ArgInput<{ [arg: string]: any; }>;
/**
* The `init` function initializes the command by parsing arguments and flags, registering search
* plugins, registering the configuration, and initializing the logger.
*/
public async init(): Promise<void> {
await super.init();
const { args, flags } = await this.parse({
flags: this.ctor.flags,
baseFlags: (super.ctor as typeof BaseCommand).baseFlags,
args: this.ctor.args,
strict: this.ctor.strict,
});
this.flags = flags as Flags<T>;
this.args = args as Args<T>;

// Init logger
this.logger = new LoggerService(process.cwd(), 'cli-log');
Expand Down

0 comments on commit 3985bdc

Please sign in to comment.