diff --git a/src/version.ts b/src/version.ts index dfade73..d2d6036 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,5 +1,16 @@ /** * Version constant - single source of truth * This file is auto-updated by scripts/release.sh + * @constant {string} VERSION - The current CLI version + * @example + * console.log(VERSION); // '0.3.0' */ export const VERSION = '0.3.0'; + +/** + * Get version info for CLI output + * @returns {string} Formatted version string with v prefix + */ +export function getVersion(): string { + return `v${VERSION}`; +}