-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrefpack.js
More file actions
36 lines (30 loc) · 1.73 KB
/
refpack.js
File metadata and controls
36 lines (30 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env node
import { Command } from 'commander';
import { packCommand } from './src/commands/pack.js';
import { validateCommand } from './src/commands/validate.js';
import { pushCommand } from './src/commands/push.js';
import { pullCommand } from './src/commands/pull.js';
import { metaCommand } from './src/commands/meta.js';
import { scaffoldCommand } from './src/commands/scaffold.js';
const program = new Command();
const asciiArt = `
██████╗ ███████╗███████╗██████╗ █████╗ ██████╗██╗ ██╗
██╔══██╗██╔════╝██╔════╝██╔══██╗██╔══██╗██╔════╝██║ ██╔╝
██████╔╝█████╗ █████╗ ██████╔╝███████║██║ █████╔╝
██╔══██╗██╔══╝ ██╔══╝ ██╔═══╝ ██╔══██║██║ ██╔═██╗
██║ ██║███████╗██║ ██║ ██║ ██║╚██████╗██║ ██╗
╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
`;
program
.name('refpack')
.description(`${asciiArt}
Streamline your dataset workflow with powerful packaging, validation,
and registry management tools.`)
.version('1.0.0');
program.addCommand(packCommand);
program.addCommand(validateCommand);
program.addCommand(pushCommand);
program.addCommand(pullCommand);
program.addCommand(metaCommand);
program.addCommand(scaffoldCommand);
program.parse(process.argv);