Download scripts/vsh/src/index.ts from binhugg3/admin: direct link, hf CLI and curl.
- Browser
- Download file 888 Bytes
-
https://huggingface.co/spaces/binhugg3/admin/resolve/main/scripts/vsh/src/index.ts
- Command line
-
hf download hf://spaces/binhugg3/admin/scripts/vsh/src/index.ts
-
curl -L -o index.ts https://huggingface.co/spaces/binhugg3/admin/resolve/main/scripts/vsh/src/index.ts
888 Bytes
| import { colors, consola } from '@vben/node-utils'; | |
| import { cac } from 'cac'; | |
| import { defineCheckCircularCommand } from './check-circular'; | |
| import { defineDepcheckCommand } from './check-dep'; | |
| import { defineCodeWorkspaceCommand } from './code-workspace'; | |
| import { defineLintCommand } from './lint'; | |
| import { definePubLintCommand } from './publint'; | |
| try { | |
| const vsh = cac('vsh'); | |
| // vsh lint | |
| defineLintCommand(vsh); | |
| // vsh publint | |
| definePubLintCommand(vsh); | |
| // vsh code-workspace | |
| defineCodeWorkspaceCommand(vsh); | |
| // vsh check-circular | |
| defineCheckCircularCommand(vsh); | |
| // vsh check-dep | |
| defineDepcheckCommand(vsh); | |
| // Invalid command | |
| vsh.on('command:*', () => { | |
| consola.error(colors.red('Invalid command!')); | |
| process.exit(1); | |
| }); | |
| vsh.usage('vsh'); | |
| vsh.help(); | |
| vsh.parse(); | |
| } catch (error) { | |
| consola.error(error); | |
| process.exit(1); | |
| } | |