bump-cli
Version:
The Bump CLI is used to interact with your API documentation hosted on Bump.sh by using the API of developers.bump.sh
19 lines (18 loc) • 670 B
JavaScript
import { Command } from '@oclif/core';
import debug from 'debug';
import { BumpApi } from './api/index.js';
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
export class BaseCommand extends Command {
_bump;
get bump() {
if (!this._bump)
this._bump = new BumpApi(this.config);
return this._bump;
}
// Function signature type taken from @types/debug
// Debugger(formatter: any, ...args: any[]): void;
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
d(formatter, ...args) {
return debug(`bump-cli:command:${this.constructor.name.toLowerCase()}`)(formatter, ...args);
}
}