mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-19 14:15:27 +00:00
feat(web): enhance dashboard functionality and ui components
This commit is contained in:
1 parent
03059dbdcc
commit
6e2da6458a
10 files changed
+185
-43
No files matched your search
@@ -633,7 +633,7 @@ async function showStatus(verbose: boolean): Promise<void> {
|
||||
async function installVersion(version: string, verbose: boolean): Promise<void> {
|
||||
// Validate version format (basic semver check)
|
||||
if (!/^\d+\.\d+\.\d+$/.test(version)) {
|
||||
console.error('[X] Invalid version format. Expected format: X.Y.Z (e.g., 6.5.40)');
|
||||
console.error('[X] Invalid version format. Expected format: X.Y.Z (e.g., 6.5.53)');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
@@ -732,7 +732,7 @@ export async function handleCliproxyCommand(args: string[]): Promise<void> {
|
||||
if (!version || version.startsWith('-')) {
|
||||
console.error('[X] Missing version argument for --install');
|
||||
console.error(' Usage: ccs cliproxy --install <version>');
|
||||
console.error(' Example: ccs cliproxy --install 6.5.40');
|
||||
console.error(' Example: ccs cliproxy --install 6.5.53');
|
||||
process.exit(1);
|
||||
}
|
||||
await installVersion(version, verbose);
|
||||
|
||||
Reference in new issue
Block a user