bit-ship
Version:
Bit-Ship CLI is tool that analyses your code and generates a custom environment for your needs You can use if to local development, CI/CD or even production.
2 lines (1 loc) • 1.22 kB
JavaScript
import{_ as e,c as r}from"./index.js";import t from"consola";import{defineCommand as o}from"citty";import"@sentry/node";import"unstorage";import"unstorage/drivers/fs";import"os";import"confbox";import"fs/promises";import"unstorage/drivers/utils/node-fs";import"joi";import"ofetch";import"uuid";import"url";import"path";import"fs";import"node:path";import"child_process";var i=o({meta:{name:"settings",description:"Configure bit-ship cli"},args:{},run(){return e(this,void 0,void 0,(function*(){const e=r(),o=yield t.prompt("What would you like to configure",{type:"select",required:!0,options:[{label:"Crash report",value:"crashreports",hint:"We are using Sentry to collect crash reports"},{label:"Reset settings",value:"reset",hint:"Delete all settings"}]});if("reset"===o&&(yield e.clear(),t.success("All settings have been reset")),"crashreports"===o){const r=yield t.prompt("Crash reports - we are using Sentry.io for monitoring crashes for improving our products",{type:"select",required:!0,options:[{label:"Enable",value:"enable"},{label:"Disable",value:"disable"}]});"enable"===r&&(yield e.removeItem("isSentryDisabled")),"disable"===r&&(yield e.setItem("isSentryDisabled","true"))}}))}});export{i as default};