-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
56 lines (47 loc) · 1.18 KB
/
index.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env bun
import { Command } from 'commander'
import * as core from './core/index'
const program = new Command()
program
.name('gild')
.version('0.1.0')
.description('https://gild.gg')
program
.command('new')
.description('create a new gild project')
.action(async () => {
await core.init()
})
program
.command('add')
.description('fetch remote package')
.argument('<repo>', 'github <user>/<repo> containing a package')
.argument('[version]', 'requested version for package, default is latest')
.action(async (repo, version) => {
await core.add(repo, version)
})
program
.command('status')
.description('sanity check current project')
.action(async () => {
await core.status()
})
program
.command('check')
.description('sanity check your system')
.action(async () => {
await core.check()
})
program
.command('get')
.description('fetch a remote config')
.action(async () => {
console.log('get')
})
program
.command('login')
.description('authenticate with fromafri.ca')
.action(async () => {
await core.login()
})
program.parse()