@heroku-cli/command
- Version 12.1.0
- Published
- 75.2 kB
- 9 dependencies
- ISC license
Install
npm i @heroku-cli/command
yarn add @heroku-cli/command
pnpm add @heroku-cli/command
Overview
base class for Heroku CLI commands
Index
Variables
- ALLOWED_HEROKU_DOMAINS
- AppAddonCompletion
- AppCompletion
- AppDynoCompletion
- BuildpackCompletion
- DynoSizeCompletion
- FileCompletion
- LOCALHOST_DOMAINS
- oneDay
- PipelineCompletion
- ProcessTypeCompletion
- RegionCompletion
- RemoteCompletion
- RoleCompletion
- ScopeCompletion
- SpaceCompletion
- StackCompletion
- StageCompletion
- TeamCompletion
- vars
- yubikey
Functions
Classes
Interfaces
Type Aliases
Namespaces
Variables
variable ALLOWED_HEROKU_DOMAINS
const ALLOWED_HEROKU_DOMAINS: readonly string[];
variable AppAddonCompletion
const AppAddonCompletion: { cacheDuration: number; cacheKey(ctx: { flags: { app: any } }): Promise<string>; options(ctx: { config: Interfaces.Config; flags?: any }): Promise<string[]>;};
variable AppCompletion
const AppCompletion: { cacheDuration: number; options(ctx: { config: Interfaces.Config }): Promise<string[]>;};
variable AppDynoCompletion
const AppDynoCompletion: { cacheDuration: number; cacheKey(ctx: { flags: { app: any } }): Promise<string>; options(ctx: { config: Interfaces.Config; flags?: any }): Promise<string[]>;};
variable BuildpackCompletion
const BuildpackCompletion: { options(): Promise<string[]>; skipCache: boolean };
variable DynoSizeCompletion
const DynoSizeCompletion: { cacheDuration: number; options(ctx: { config: Interfaces.Config }): Promise<string[]>;};
variable FileCompletion
const FileCompletion: { options(): Promise<string[]>; skipCache: boolean };
variable LOCALHOST_DOMAINS
const LOCALHOST_DOMAINS: readonly string[];
variable oneDay
const oneDay: number;
variable PipelineCompletion
const PipelineCompletion: { cacheDuration: number; options(ctx: { config: Interfaces.Config }): Promise<string[]>;};
variable ProcessTypeCompletion
const ProcessTypeCompletion: { options(): Promise<string[]>; skipCache: boolean };
variable RegionCompletion
const RegionCompletion: { cacheDuration: number; options(ctx: { config: Interfaces.Config }): Promise<string[]>;};
variable RemoteCompletion
const RemoteCompletion: { options(): Promise<string[]>; skipCache: boolean };
variable RoleCompletion
const RoleCompletion: { options(): Promise<string[]>; skipCache: boolean };
variable ScopeCompletion
const ScopeCompletion: { options(): Promise<string[]>; skipCache: boolean };
variable SpaceCompletion
const SpaceCompletion: { cacheDuration: number; options(ctx: { config: Interfaces.Config }): Promise<string[]>;};
variable StackCompletion
const StackCompletion: { cacheDuration: number; options(ctx: { config: Interfaces.Config }): Promise<string[]>;};
variable StageCompletion
const StageCompletion: { options(): Promise<string[]>; skipCache: boolean };
variable TeamCompletion
const TeamCompletion: { cacheDuration: number; options(ctx: { config: Interfaces.Config }): Promise<string[]>;};
variable vars
const vars: Vars;
variable yubikey
const yubikey: { disable: () => void; enable: () => void; platform: NodeJS.Platform;};
Functions
function configRemote
configRemote: () => string | undefined;
function getGitRemotes
getGitRemotes: (onlyRemote: string | undefined) => IGitRemotes[];
function herokuGet
herokuGet: ( resource: string, ctx: { config: Interfaces.Config }) => Promise<string[]>;
Classes
class APIClient
class APIClient {}
constructor
constructor(config: Interfaces.Config, options?: IOptions);
property auth
auth: string;
property authPromise
authPromise?: Promise<HTTP<any>>;
property config
protected config: Interfaces.Config;
property defaults
readonly defaults: any;
property http
http: any;
property options
options: IOptions;
property particleboard
readonly particleboard: ParticleboardClient;
property preauthPromises
preauthPromises: { [k: string]: Promise<HTTP<any>> };
property twoFactorMutex
readonly twoFactorMutex: Mutex<string>;
method delete
delete: <T>(url: string, options?: APIClient.Options) => Promise<HTTP<T>>;
method get
get: <T>(url: string, options?: APIClient.Options) => Promise<HTTP<T>>;
method login
login: (opts?: Login.Options) => Promise<void>;
method logout
logout: () => Promise<void>;
method patch
patch: <T>(url: string, options?: APIClient.Options) => Promise<HTTP<T>>;
method post
post: <T>(url: string, options?: APIClient.Options) => Promise<HTTP<T>>;
method preauth
preauth: (app: string, factor: string) => Promise<HTTP<unknown>>;
method put
put: <T>(url: string, options?: APIClient.Options) => Promise<HTTP<T>>;
method request
request: <T>(url: string, options?: APIClient.Options) => Promise<HTTP<T>>;
method stream
stream: (url: string, options?: APIClient.Options) => Promise<HTTP<unknown>>;
method twoFactorPrompt
twoFactorPrompt: () => Promise<string>;
class Command
abstract class Command extends Base {}
property allowArbitraryFlags
allowArbitraryFlags: boolean;
property heroku
readonly heroku: APIClient;
method parse
protected parse: (options?: any, argv?: string[]) => Promise<any>;
class Git
class Git {}
class HerokuAPIError
class HerokuAPIError extends Errors.CLIError {}
constructor
constructor(httpError: HTTPError);
property body
body: IHerokuAPIErrorOptions;
property http
http: HTTPError;
class Mutex
class Mutex<T> {}
method dequeue
dequeue: () => Promise<void> | undefined;
method execute
execute: (record: Record<T>) => Promise<void>;
method synchronize
synchronize: (task: Task<T>) => Promise<T>;
class ParticleboardClient
class ParticleboardClient {}
class Vars
class Vars {}
property apiHost
readonly apiHost: string;
property apiUrl
readonly apiUrl: string;
property envGitHost
readonly envGitHost: string;
property envHost
readonly envHost: string;
property envParticleboardUrl
readonly envParticleboardUrl: string;
property gitHost
readonly gitHost: string;
property gitPrefixes
readonly gitPrefixes: string[];
property host
readonly host: string;
property httpGitHost
readonly httpGitHost: string;
property particleboardUrl
readonly particleboardUrl: string;
Interfaces
interface IDelinquencyConfig
interface IDelinquencyConfig {}
property fetch_delinquency
fetch_delinquency: boolean;
property fetch_url
fetch_url?: string;
property resource_type
resource_type?: 'account' | 'team';
property warning_shown
warning_shown: boolean;
interface IDelinquencyInfo
interface IDelinquencyInfo {}
property scheduled_deletion_time
scheduled_deletion_time?: null | string;
property scheduled_suspension_time
scheduled_suspension_time?: null | string;
interface IGitRemote
interface IGitRemote {}
interface IGitRemotes
interface IGitRemotes {}
interface IHerokuAPIErrorOptions
interface IHerokuAPIErrorOptions {}
interface IOptions
interface IOptions {}
property debug
debug?: boolean;
property debugHeaders
debugHeaders?: boolean;
property preauth
preauth?: boolean;
property required
required?: boolean;
Type Aliases
type PromiseReject
type PromiseReject = (reason?: any) => void;
type PromiseResolve
type PromiseResolve<T> = (value: PromiseLike<T> | T) => void;
type Record
type Record<T> = [Task<T>, PromiseResolve<T>, PromiseReject];
type Task
type Task<T> = () => Promise<T>;
Namespaces
namespace APIClient
namespace APIClient {}
namespace flags
module 'lib/flags/index.d.ts' {}
variable app
const app: any;
variable boolean
const boolean: any;
variable custom
const custom: any;
variable directory
const directory: any;
variable file
const file: any;
variable integer
const integer: any;
variable option
const option: any;
variable org
const org: any;
variable pipeline
const pipeline: any;
variable remote
const remote: any;
variable string
const string: any;
variable team
const team: any;
variable url
const url: any;
Package Files (14)
Dependencies (9)
Dev Dependencies (29)
- @heroku-cli/schema
- @types/chai
- @types/debug
- @types/inquirer
- @types/mocha
- @types/node
- @types/proxyquire
- @types/sinon
- @types/supports-color
- @types/yargs-parser
- @types/yargs-unparser
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- chai
- conventional-changelog-cli
- eslint
- eslint-config-oclif
- eslint-config-oclif-typescript
- eslint-plugin-import
- fancy-test
- mocha
- nock
- np
- nyc
- proxyquire
- sinon
- stdout-stderr
- ts-node
- typescript
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@heroku-cli/command
.
- Markdown[](https://www.jsdocs.io/package/@heroku-cli/command)
- HTML<a href="https://www.jsdocs.io/package/@heroku-cli/command"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 4811 ms. - Missing or incorrect documentation? Open an issue for this package.