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) • 935 B
JavaScript
import{_ as o,a as r,u as t}from"./index.js";import i from"consola";import{defineCommand as s}from"citty";import{r as p,g as n}from"./naming-DKrt6FCF.js";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";const{stopContainer:a}=r(),{getConfig:e}=t(),m=s({meta:{name:"stop",description:"Stop tasks, jobs and apps"},args:{name:{description:"Name of tasks, jobs and apps",type:"positional",required:!0}},run(r){return o(this,arguments,void 0,(function*({args:o}){i.start(`Stopping '${o.name}'`);const r=o.name,t=e(),{category:s,names:m}=p(r,t);return t?s&&m.length?void(yield Promise.all(m.map((o=>{a(n(s,o))})))):i.error(`No task, job or app found with name '${r}'`):i.log("No config found")}))}});export{m as stop};