UNPKG

alwaysai

Version:

The alwaysAI command-line interface (CLI)

26 lines 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.zoneCreator = void 0; const alwayscli_1 = require("@alwaysai/alwayscli"); const chalk = require("chalk"); const logSymbols = require("log-symbols"); const cli_inputs_1 = require("../cli-inputs"); const user_1 = require("../components/user"); const util_1 = require("../util"); const website_prompt_1 = require("../util/website-prompt"); const zoneCreatorFunc = () => (0, alwayscli_1.CliLeaf)({ name: 'zone-creator', description: 'Run zone creation tool', namedInputs: { yes: cli_inputs_1.yesCliInput }, async action(_, { yes }) { await (0, user_1.checkUserIsLoggedInComponent)({ yes }); const zoneTutorial = 'https://alwaysai.co/tutorials/how-to-use-alwaysais-new-zone-editor-tool'; const log = `${logSymbols.warning} The Zone Creator CLI tool is now deprecated. Please use the new Zone Tool on the alwaysAI Console!\nRead how here: ${chalk.bold(zoneTutorial)}`; (0, util_1.echo)(log); await (0, website_prompt_1.websitePrompt)(zoneTutorial); } }); exports.zoneCreator = zoneCreatorFunc(); //# sourceMappingURL=zone-creator.js.map