@capgo/cli
Version:
A CLI to upload to capgo servers
41 lines (40 loc) • 1.6 kB
TypeScript
export declare const defaultStarRepo = "capacitor-updater";
export type StarAllRepositoryStatus = 'starred' | 'already_starred' | 'skipped' | 'failed';
export interface StarAllRepositoryResult {
repository: string;
alreadyStarred: boolean;
skipped: boolean;
error?: string;
status: StarAllRepositoryStatus;
}
export interface StarAllRepositoriesOptions {
repositories?: string[];
minDelayMs?: number;
maxDelayMs?: number;
maxConcurrency?: number;
onProgress?: (result: StarAllRepositoryResult) => void;
onDiscovery?: (message: string) => void;
signal?: AbortSignal;
}
export declare class StarAllRepositoriesAbortedError extends Error {
results: StarAllRepositoryResult[];
constructor(results?: StarAllRepositoryResult[]);
}
export declare function markRepoStarredInSession(repository: string): void;
export declare function isRepoStarredInSession(repositoryInput?: string): boolean;
export interface RepoStarStatus {
repository: string;
ghInstalled: boolean;
ghLoggedIn: boolean;
repositoryExists: boolean;
starred: boolean;
}
export declare function normalizeGithubRepo(repository?: string): string;
export declare function isGhInstalled(): boolean;
export declare function isGhLoggedIn(): boolean;
export declare function getRepoStarStatus(repositoryInput?: string): RepoStarStatus;
export declare function starAllRepositories(options?: StarAllRepositoriesOptions): Promise<StarAllRepositoryResult[]>;
export declare function starRepository(repositoryInput?: string): {
repository: string;
alreadyStarred: boolean;
};