-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcli.mjs
More file actions
executable file
·30 lines (24 loc) · 821 Bytes
/
cli.mjs
File metadata and controls
executable file
·30 lines (24 loc) · 821 Bytes
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
#!/usr/bin/env node
/**
* ObjectDocs
* Copyright (c) 2026-present ObjectStack Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { cac } from 'cac';
import 'dotenv/config';
import { registerInitCommand } from '../src/commands/init.mjs';
import { registerTranslateCommand } from '../src/commands/translate.mjs';
import { registerDevCommand } from '../src/commands/dev.mjs';
import { registerBuildCommand } from '../src/commands/build.mjs';
import { registerStartCommand } from '../src/commands/start.mjs';
const cli = cac('objectdocs');
registerInitCommand(cli);
registerTranslateCommand(cli);
registerDevCommand(cli);
registerBuildCommand(cli);
registerStartCommand(cli);
cli.help();
cli.version('0.0.1');
cli.parse();