重构 CLI 代码,删除不必要的命令和文件,更新路由配置,优化构建设置

This commit is contained in:
xiongxiao
2026-03-26 21:30:42 +08:00
committed by cnb
parent 4e2ae49372
commit 33459259ad
19 changed files with 28 additions and 938 deletions

View File

@@ -199,7 +199,7 @@ app.route({
}).define(async (ctx) => {
const { list, set } = ctx.args;
const config = getConfig();
const defaultRegistry = ['https://kevisual.cn', 'https://kevisual.silkyai.cn', 'https://kevisual.xiongxiao.me', 'http://localhost:3005'];
const defaultRegistry = ['https://kevisual.cn', 'https://kevisual.xiongxiao.me', 'http://localhost:3005'];
if (list) {
showList(defaultRegistry);
return;
@@ -236,6 +236,21 @@ app.route({
showList(defaultRegistry);
}).addTo(app)
app.route({
path: 'baseURL',
key: 'me',
description: 'xiongxiao.me registry',
metadata: {
middleware: ['auth'],
args: {}
}
}).define(async () => {
const config = getConfig();
const defaultRegistry = ['https://kevisual.xiongxiao.me'];
writeConfig({ ...config, baseURL: defaultRegistry[0] });
showList(defaultRegistry);
}).addTo(app)
app.route({
path: 'baseURL',
key: 'local',