@auto-it/sbt
Version:
Publish Scala projects with sbt
28 lines • 1.12 kB
TypeScript
import { Auto, IPlugin } from "@auto-it/core";
import * as t from "io-ts";
declare const pluginOptions: t.PartialC<{
setCanaryVersion: t.BooleanC;
publishCommand: t.StringC;
}>;
export declare type ISbtPluginOptions = t.TypeOf<typeof pluginOptions>;
/** Calls sbt in the client and returns cleaned up logs */
export declare function sbtClient(input: string): Promise<string>;
/** Read version from sbt */
export declare function sbtGetVersion(): Promise<string>;
/** Set version in sbt to the given value */
export declare function sbtSetVersion(version: string): Promise<string>;
/** Run sbt publish */
export declare function sbtPublish(command?: string): Promise<string>;
/** Publish Scala projects with sbt */
export default class SbtPlugin implements IPlugin {
/** The name of the plugin */
name: string;
/** The options of the plugin */
readonly options: ISbtPluginOptions;
/** Initialize the plugin with it's options */
constructor(options: ISbtPluginOptions);
/** Tap into auto plugin points. */
apply(auto: Auto): void;
}
export {};
//# sourceMappingURL=index.d.ts.map