ardunno-cli-gen
Version:
Generates nice-grpc API for the Arduino CLI
35 lines • 1.04 kB
TypeScript
import { SemVer } from 'semver';
export interface Options {
readonly src: string;
readonly out: string;
readonly force?: boolean;
}
export default function (options: Options): Promise<void>;
declare function execa(file: string, args: string[], options?: {
cwd?: string;
}): Promise<void>;
interface GitHub {
readonly owner: string;
readonly repo: string;
readonly commit?: string | undefined;
}
declare function parseGitHub(src: string): GitHub | undefined;
declare function protoLocation(semver: SemVer): {
endpoint: string;
filename: string;
};
/**
* If the `src` argument is `<0.29.0` semver, the function returns with a `GitHub` instance.
*/
declare function parseSemver(src: string): SemVer | GitHub | undefined;
/**
* (non-API)
*/
export declare const __test: {
readonly parseGitHub: typeof parseGitHub;
readonly protoLocation: typeof protoLocation;
readonly parseSemver: typeof parseSemver;
readonly execa: typeof execa;
};
export {};
//# sourceMappingURL=generate.d.ts.map