forked from schpet/linear-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ts
More file actions
27 lines (25 loc) · 914 Bytes
/
main.ts
File metadata and controls
27 lines (25 loc) · 914 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
import { Command } from "@cliffy/command";
import { CompletionsCommand } from "@cliffy/command/completions";
import denoConfig from "../deno.json" with { type: "json" };
import { issueCommand } from "./commands/issue/issue.ts";
import { teamCommand } from "./commands/team/team.ts";
import { projectCommand } from "./commands/project/project.ts";
import { configCommand } from "./commands/config.ts";
// Import config setup
import "./config.ts";
await new Command()
.name("linear")
.version(denoConfig.version)
.description("Handy linear commands from the command line")
.action(() => {
console.log("Use --help to see available commands");
})
.command("issue", issueCommand)
.alias("i")
.command("team", teamCommand)
.alias("t")
.command("project", projectCommand)
.alias("p")
.command("completions", new CompletionsCommand())
.command("config", configCommand)
.parse(Deno.args);