-
Notifications
You must be signed in to change notification settings - Fork 0
/
cli.ts
executable file
·36 lines (33 loc) · 1.25 KB
/
cli.ts
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 bun
import { Command } from "commander";
import { configCommand } from "./src/commands/config";
import { cleanCommand } from "./src/commands/clean";
import { environmentCommand } from "./src/commands/environment";
import { composeCommand } from "./src/commands/compose";
import { dependenciesCommand } from "./src/commands/dependencies";
import { gitCommand } from "./src/commands/git";
import { noIndent } from "./src/utils/string";
import { name, version, description } from "./package.json";
import { projectCommand } from "./src/commands/project";
import { setupCommand } from "./src/commands/setup";
const cli = new Command()
.name(name)
.version(version)
.summary(description)
.description(
noIndent(`
DEMS is an easy-to-use automation tool to provision development
environments for compatible application repositories. It uses
Docker, Docker Compose, and the power of Bun to automate the
initialization of a project and all of its respositories.
`),
)
.addCommand(projectCommand())
.addCommand(configCommand())
.addCommand(gitCommand())
.addCommand(cleanCommand())
.addCommand(environmentCommand())
.addCommand(composeCommand())
.addCommand(dependenciesCommand())
.addCommand(setupCommand());
cli.parse();