export class ProjectIsNotSet extends Error {
    constructor() {
        super(`Missing project name. This command requires a project to be specified. Either specify it using --project or set it in zuplo.jsonc.
      Fetching it from the zuplo.jsonc is deprecated.
      `);
        Object.setPrototypeOf(this, ProjectIsNotSet.prototype);
    }
}
export class ProjectIsSetValidator {
    async validate(argv) {
        if (!argv.project) {
            return {
                ok: false,
                error: new ProjectIsNotSet(),
            };
        }
        else {
            return { ok: true };
        }
    }
}
//# sourceMappingURL=project-name-validator.js.map