diff --git a/package.json b/package.json index 4ba1b31..290860c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/envision-cli", - "version": "0.0.34", + "version": "0.0.35-alpha.1", "description": "envision command tools", "main": "dist/app.mjs", "type": "module", diff --git a/src/command/publish.ts b/src/command/publish.ts index 717a789..b6dfb99 100644 --- a/src/command/publish.ts +++ b/src/command/publish.ts @@ -572,7 +572,8 @@ const servicesCommand = new Command('services') } } if (opts.delete) { - const res = await backServices.queryServiceOperate(opts.delete, 'delete'); + // const res = await backServices.queryServiceOperate(opts.delete, 'delete'); + const res = await backServices.queryServiceDelect(opts.delete); if (res.code === 200) { console.log('delete success'); } else { diff --git a/src/query/services/index.ts b/src/query/services/index.ts index 256e737..2bd563a 100644 --- a/src/query/services/index.ts +++ b/src/query/services/index.ts @@ -1,8 +1,8 @@ import { query } from '@/module/query.ts'; -type OperateAction = 'start' | 'stop' | 'restart' | 'reload' | 'delete' | 'update' | 'install' | 'uninstall'; +type OperateAction = 'start' | 'stop' | 'restart' | 'reload' | 'removeApp' | 'update' | 'install'; export const queryServiceOperate = async (appKey: string, action: OperateAction) => { - if (['start', 'stop', 'restart'].indexOf(action) === -1) { + if (['start', 'stop', 'restart', 'removeApp'].indexOf(action) === -1) { throw new Error('Invalid action'); } return await query.post({ diff --git a/submodules/kevisual-query-login b/submodules/kevisual-query-login index 54672a5..fdf6d3a 160000 --- a/submodules/kevisual-query-login +++ b/submodules/kevisual-query-login @@ -1 +1 @@ -Subproject commit 54672a5574d359220e26ec17c69f567f130d9498 +Subproject commit fdf6d3ac0a2c12cbac15a50d5089c6497c51a271