import { CliffyPrompt } from "../deps.ts"; import { getConfig, setConfig } from "../global.ts"; export default async function setup() { const registry = await CliffyPrompt.Input.prompt({ message: "What's your registry?", default: getConfig("registry"), }); const username = await CliffyPrompt.Input.prompt({ message: "What's your username?", default: getConfig("username"), }); const password = await CliffyPrompt.Secret.prompt({ message: "What's your password?", hidden: true, default: getConfig("password"), }); const author = await CliffyPrompt.Input.prompt({ message: "Who are you? (optional) Name ", default: getConfig("author"), }); await setConfig("registry", registry); await setConfig("username", username); await setConfig("password", password); await setConfig("author", author); }