UNPKG

create-nx-workspace

Version:

Smart Repos · Fast Builds

32 lines 1.07 kB
export declare enum VcsPushStatus { PushedToVcs = "PushedToVcs", OptedOutOfPushingToVcs = "OptedOutOfPushingToVcs", FailedToPushToVcs = "FailedToPushToVcs", SkippedGit = "SkippedGit" } export declare class GitHubPushSkippedError extends Error { readonly title = "Push your workspace"; constructor(message: string); } export declare function checkGitVersion(): Promise<string | null | undefined>; /** * Synchronously checks if git is available on the system. * Returns true if git command can be executed, false otherwise. */ export declare function isGitAvailable(): boolean; export declare function initializeGitRepo(directory: string, options: { defaultBase: string; commit?: { message: string; name: string; email: string; }; connectUrl?: string | null; }): Promise<void>; export declare function pushToGitHub(directory: string, options: { skipGitHubPush?: boolean; name: string; defaultBase: string; verbose?: boolean; }): Promise<VcsPushStatus>; //# sourceMappingURL=git.d.ts.map