packages/cli/src/index.ts 1.1 K raw
1
#!/usr/bin/env node
2
3
import { run, subcommands } from "cmd-ts";
4
import { authCommand } from "./commands/auth";
5
import { initCommand } from "./commands/init";
6
import { injectCommand } from "./commands/inject";
7
import { publishCommand } from "./commands/publish";
8
import { syncCommand } from "./commands/sync";
9
10
const app = subcommands({
11
	name: "sequoia",
12
	description: `
13
14
                 .*##*###:
15
               :**:     :**:
16
              :#:         :#:
17
              #=           =#
18
              #=           -#
19
             +#-           -#+
20
            **:      #.     .**
21
            #=   +#-:#.      =#
22
           :#:    .*##.  :   :*-
23
            #=      -#+*#-   =#
24
            **:      ##=    .**
25
             +#=     #.    -#+
26
               +**   #.  *#*
27
                     #.
28
                     #.
29
                     #.
30
                 :**###**:
31
32
Publish evergreen content to the ATmosphere
33
34
> https://tangled.org/stevedylan.dev/sequoia
35
	`,
36
	version: "0.1.1",
37
	cmds: {
38
		auth: authCommand,
39
		init: initCommand,
40
		inject: injectCommand,
41
		publish: publishCommand,
42
		sync: syncCommand,
43
	},
44
});
45
46
run(app, process.argv.slice(2));