@capgo/cli
Version:
A CLI to upload to capgo servers
20 lines (19 loc) • 920 B
TypeScript
/**
* Auto-bump a semver version by incrementing the patch number
* @param currentVersion - The current version string (e.g., "1.0.0")
* @returns The bumped version or a fallback version if parsing fails
*/
export declare function autoBumpVersion(currentVersion: string): string;
/**
* Interactively ask the user how to handle version bumping
* @param currentVersion - The current version
* @param context - Optional context string (e.g., "upload", "onboarding")
* @returns The new version string or null if cancelled
*/
export declare function interactiveVersionBump(currentVersion: string, context?: string): Promise<string | null>;
/**
* Get suggestions for alternative versions when a version already exists
* @param existingVersion - The version that already exists
* @returns Array of suggested alternative versions
*/
export declare function getVersionSuggestions(existingVersion: string): string[];