UNPKG

@auto-canary/exec

Version:

Tap into select hooks and run a command on the terminal

23 lines 1.39 kB
import { Auto, IPlugin } from '@auto-it/core'; import * as t from 'io-ts'; declare const pluginOptions: t.IntersectionC<[t.PartialC<Record<"canary" | "next" | "modifyConfig" | "beforeRun" | "beforeShipIt" | "beforeCommitChangelog" | "afterAddToChangelog" | "afterShipIt" | "afterRelease" | "makeRelease" | "getAuthor" | "getPreviousVersion" | "getRepository" | "version" | "afterVersion" | "publish" | "afterPublish", t.StringC>>, t.PartialC<{ onCreateRelease: t.PartialC<Record<"createChangelogTitle", t.StringC>>; onCreateLogParse: t.PartialC<Record<"parseCommit" | "omitCommit", t.StringC>>; onCreateChangelog: t.PartialC<Record<"renderChangelogLine" | "renderChangelogTitle" | "renderChangelogAuthor" | "renderChangelogAuthorLine" | "addToBody" | "omitReleaseNotes", t.StringC>>; }>]>; export declare type IExecPluginOptions = t.TypeOf<typeof pluginOptions>; /** Tap into select hooks and run a command on the terminal */ export default class ExecPlugin implements IPlugin { /** The name of the plugin */ name: string; /** The options of the plugin */ readonly options: IExecPluginOptions; /** Initialize the plugin with it's options */ constructor(options: IExecPluginOptions); /** Tap into auto plugin points. */ apply(auto: Auto): void; /** Apply a hook to auto */ private applyHook; } export {}; //# sourceMappingURL=index.d.ts.map