import { taonPackageName } from 'tnp-core/lib-prod';
import { fse, path } from 'tnp-core/lib-prod';
import { Helpers__NS__success, HelpersTaon__NS__CLIWRAP } from 'tnp-helpers/lib-prod';
import { Project } from '../abstract/project'; // TODO QUICK FIX for version
import { BaseCli } from './base-cli';
// @ts-ignore TODO weird inheritance problem
export class $Version extends BaseCli {
    //#region _
    async _() {
        const tnpProj = Project.ins.Tnp;
        const taonProj = Project.ins.From([
            fse.realpathSync(path.dirname(tnpProj.location)),
            taonPackageName,
        ]);
        Helpers__NS__success(`

  Taon: ${taonProj?.packageJson.version ? `v${taonProj.packageJson.version}` : '-'}
  Tnp: ${tnpProj?.packageJson.version ? `v${tnpProj.packageJson.version}` : '-'}

    `);
        this._exit();
    }
    //#endregion
    async path() {
        console.log(`

    next path
    ${this.project.packageJson.resolvePossibleNewVersion('patch')}

    `);
        this._exit();
    }
}
export default {
    $Version: HelpersTaon__NS__CLIWRAP($Version, '$Version'),
};
//# sourceMappingURL=cli-VERSION.js.map