@ehubbell/gitty
Version:
A simple CLI that will fetch, store, and clone Github repos.
21 lines (20 loc) • 688 B
TypeScript
interface GitService {
basePath: string;
token: string;
}
declare class GitService {
constructor(props: {
basePath: string;
token: string;
});
get client(): import("simple-git").SimpleGit;
addConfig(key: string, value: string): import("simple-git").Response<string>;
create(ownerId: string, repoId: string): Promise<import("simple-git").PushResult>;
clone(remoteUrl: any, localPath: any): Promise<string>;
fetch(options?: {}): Promise<void>;
pull(options?: {}): Promise<void>;
push(options?: {}): Promise<void>;
remove(branch?: string): Promise<void>;
resetRepo(branch?: string): Promise<void>;
}
export { GitService };