commitmnt
Version:
Copy your gitlab and bitbucket commits to a new, publishable github repo
78 lines (77 loc) • 1.71 kB
TypeScript
/**
* Runs `git add`
*
* @param files the files to stage
* @returns the output of the executed command
*
* @category Git Wrapper
*/
export declare function add({ files }?: {
files: string | Array<string>;
}): Promise<{
stdout: string;
stderr: string;
}>;
/**
* Runs `git commit`
*
* @param date the --date arg
* @param message the --message arg
* @returns the output of the executed command
*
* @category Git Wrapper
*/
export declare function commit({ date, message }: {
date?: string;
message: string;
}): Promise<{
stdout: string;
stderr: string;
}>;
/**
* Runs `git log`
*
* @param after the --after arg
* @param author the --author arg
* @param before the --before arg
* @param pretty the --pretty arg
* @param misc any misc text to append to the command
* @returns the output of the executed command
*
* @category Git Wrapper
*/
export declare function log({ after, author, before, pretty, }?: {
after?: string;
author?: string;
before?: string;
pretty?: string;
}): Promise<{
stdout: string;
stderr: string;
}>;
/**
* Runs `git` + whatever you want
*
* @param command the command to run
* @returns the output of the executed command
*
* @category Git Wrapper
*/
export declare function misc(command: string): Promise<{
stdout: string;
stderr: string;
}>;
/**
* Runs `git push`
*
* @param upstream the --set-upstream arg
* @returns the output of the executed command
*
* @category Git Wrapper
*/
export declare function push({ upstream }?: {
upstream?: string;
}): Promise<{
stdout: string;
stderr: string;
}>;