@zinn-dev/cli 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.ts +8 -13
  2. package/package.json +3 -7
  3. package/README.md +0 -21
package/index.ts CHANGED
@@ -1,15 +1,10 @@
1
- #!/usr/bin/env bun
2
- import { createCliRenderer, Box, Text } from "@opentui/core";
1
+ // Main entry point, will replace the code currently published on https://www.npmjs.com/package/@zinn-dev/cli
3
2
 
4
- const renderer = await createCliRenderer({
5
- exitOnCtrlC: true,
6
- });
3
+ const args = process.argv.slice(2);
7
4
 
8
- renderer.root.add(
9
- Box(
10
- { borderStyle: "rounded", padding: 1, flexDirection: "column", gap: 1 },
11
- Text({ content: "zinn", fg: "#00a6ffff" }),
12
- Text({ content: "A kanban workflow for your terminal. Built on OpenTUI.", fg: "#00c8ffff" }),
13
- Text({ content: "Press Ctrl+C to exit" }),
14
- ),
15
- );
5
+ if (args.length === 0) {
6
+ const tui = await import("@zinn-dev/tui");
7
+ tui.launch();
8
+ } else {
9
+ // TODO: headless CLI
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-dev/cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "A kanban workflow for your terminal. Built on OpenTUI.",
5
5
  "license": "MIT",
6
6
  "bugs": {
@@ -38,12 +38,8 @@
38
38
  "bin": {
39
39
  "zinn": "./index.ts"
40
40
  },
41
- "private": false,
42
- "devDependencies": {
43
- "@types/bun": "latest",
44
- "typescript": "^5"
45
- },
46
41
  "dependencies": {
47
- "@opentui/core": "^0.4.5"
42
+ "@zinn-dev/core": "0.0.1",
43
+ "@zinn-dev/tui": "0.0.1"
48
44
  }
49
45
  }
package/README.md DELETED
@@ -1,21 +0,0 @@
1
- # zinn
2
-
3
- A kanban workflow for your terminal. Built on OpenTUI.
4
-
5
- ## Install
6
-
7
- ```bash
8
- bun add -g @zinn-dev/cli
9
- ```
10
-
11
- OpenTUI is based on Bun, so Bun is the recommended runtime.
12
-
13
- ## Usage
14
-
15
- ```bash
16
- zinn
17
- ```
18
-
19
- ## License
20
-
21
- MIT