kami-redis 2.0.0

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.
@@ -0,0 +1,8 @@
1
+ # Changesets
2
+
3
+ Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4
+ with multi-package repos, or single-package repos to help you version and publish your code. You can
5
+ find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6
+
7
+ We have a quick list of common questions to get you started engaging with this project in
8
+ [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3
+ "changelog": "@changesets/cli/changelog",
4
+ "commit": false,
5
+ "fixed": [],
6
+ "linked": [],
7
+ "access": "public",
8
+ "baseBranch": "main",
9
+ "updateInternalDependencies": "patch",
10
+ "ignore": []
11
+ }
@@ -0,0 +1,17 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches:
5
+ - "**"
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - uses: oven-sh/setup-bun@v2
13
+ with:
14
+ bun-version: latest
15
+
16
+ - run: bun install
17
+ - run: bun run lint && bun run build
@@ -0,0 +1,32 @@
1
+ name: Publish
2
+ on:
3
+ workflow_run:
4
+ workflows: [CI]
5
+ branches: [main]
6
+ types: [completed]
7
+
8
+ concurrency: ${{ github.workflow }}-${{ github.ref }}
9
+
10
+ permissions:
11
+ contents: write
12
+ pull-requests: write
13
+
14
+ jobs:
15
+ publish:
16
+ if: ${{ github.event.workflow_run.conclusion == 'success' }}
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - uses: oven-sh/setup-bun@v2
21
+ with:
22
+ bun-version: latest
23
+
24
+ - run: bun install
25
+ - name: Create Release Pull Request or Publish
26
+ id: changesets
27
+ uses: changesets/action@v1
28
+ with:
29
+ publish: bun run release
30
+ env:
31
+ GITHUB_TOKEN: ${{ secrets.GHUB_TOKEN }}
32
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,51 @@
1
+ {
2
+ // Disable the default formatter, use eslint instead
3
+ "prettier.enable": false,
4
+ "editor.formatOnSave": false,
5
+
6
+ // Auto fix
7
+ "editor.codeActionsOnSave": {
8
+ "source.fixAll.eslint": "explicit",
9
+ "source.organizeImports": "never"
10
+ },
11
+
12
+ // Silent the stylistic rules in you IDE, but still auto fix them
13
+ "eslint.rules.customizations": [
14
+ { "rule": "style/*", "severity": "off", "fixable": true },
15
+ { "rule": "format/*", "severity": "off", "fixable": true },
16
+ { "rule": "*-indent", "severity": "off", "fixable": true },
17
+ { "rule": "*-spacing", "severity": "off", "fixable": true },
18
+ { "rule": "*-spaces", "severity": "off", "fixable": true },
19
+ { "rule": "*-order", "severity": "off", "fixable": true },
20
+ { "rule": "*-dangle", "severity": "off", "fixable": true },
21
+ { "rule": "*-newline", "severity": "off", "fixable": true },
22
+ { "rule": "*quotes", "severity": "off", "fixable": true },
23
+ { "rule": "*semi", "severity": "off", "fixable": true }
24
+ ],
25
+
26
+ // Enable eslint for all supported languages
27
+ "eslint.validate": [
28
+ "javascript",
29
+ "javascriptreact",
30
+ "typescript",
31
+ "typescriptreact",
32
+ "vue",
33
+ "html",
34
+ "markdown",
35
+ "json",
36
+ "json5",
37
+ "jsonc",
38
+ "yaml",
39
+ "toml",
40
+ "xml",
41
+ "gql",
42
+ "graphql",
43
+ "astro",
44
+ "svelte",
45
+ "css",
46
+ "less",
47
+ "scss",
48
+ "pcss",
49
+ "postcss"
50
+ ]
51
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # kami-redis
2
+
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - e7c8743: initial update
package/README.md ADDED
@@ -0,0 +1,67 @@
1
+ ## kami-redis — Inspect Redis keys from your CLI
2
+
3
+ A tiny CLI to browse keys, view nicely formatted values, copy them, or delete — fast and simple.
4
+
5
+ ### Screenshots
6
+
7
+ (Add later)
8
+
9
+ - `./docs/screenshot-keys.png`
10
+ - `./docs/screenshot-json.png`
11
+
12
+ ### Features
13
+
14
+ - **Pretty output** with JSON detection and syntax highlighting
15
+ - **Quick actions**: `c` copy, `d` delete, `←` back, `Ctrl+C` quit
16
+ - **Supports** `string`, `hash`, `list`, `set`, `zset`
17
+
18
+ ### Install
19
+
20
+ ```bash
21
+ # global
22
+ npm install -g kami-redis
23
+ # or
24
+ bun install -g kami-redis
25
+ ```
26
+
27
+ ### Quick start
28
+
29
+ ```bash
30
+ kami-redis redis://localhost:6379
31
+ # TLS
32
+ kami-redis rediss://user:pass@host:6380/0
33
+ ```
34
+
35
+ ### Usage
36
+
37
+ ```text
38
+ Usage
39
+ kami-redis <url>
40
+ ```
41
+
42
+ Examples:
43
+
44
+ ### Shortcuts
45
+
46
+ - `c`: Copy current value
47
+ - `d`: Delete current key
48
+ - `←`: Back to keys list
49
+ - `Ctrl+C`: Quit
50
+
51
+ ### Supported types
52
+
53
+ - `string`, `hash`, `list`, `set`, `zset`
54
+
55
+ Unsupported types show as `(unsupported type)`.
56
+
57
+ ## Feedback
58
+
59
+ If you have any feedback, feel free to reach out to [KamiRu](https://discord.com/users/819191621676695563) on Discord.
60
+
61
+ ## License
62
+
63
+ [MIT](https://choosealicense.com/licenses/mit/)
64
+
65
+ ## Authors
66
+
67
+ - [Ruhan](https://github.com/Ruhannn)