Download scripts/turbo-run/src/index.ts from binhugg3/admin: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/spaces/binhugg3/admin/resolve/main/scripts/turbo-run/src/index.ts
- Command line
-
hf download hf://spaces/binhugg3/admin/scripts/turbo-run/src/index.ts
-
curl -L -o index.ts https://huggingface.co/spaces/binhugg3/admin/resolve/main/scripts/turbo-run/src/index.ts
572 Bytes
| import { colors, consola } from '@vben/node-utils'; | |
| import { cac } from 'cac'; | |
| import { run } from './run'; | |
| try { | |
| const turboRun = cac('turbo-run'); | |
| turboRun | |
| .command('[script]') | |
| .usage(`Run turbo interactively.`) | |
| .action(async (command: string) => { | |
| run({ command }); | |
| }); | |
| // Invalid command | |
| turboRun.on('command:*', () => { | |
| consola.error(colors.red('Invalid command!')); | |
| process.exit(1); | |
| }); | |
| turboRun.usage('turbo-run'); | |
| turboRun.help(); | |
| turboRun.parse(); | |
| } catch (error) { | |
| consola.error(error); | |
| process.exit(1); | |
| } | |