qrlkit 0.7.0 → 0.9.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.
- package/README.md +65 -14
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ rs = "https://github.com/qrlkit/qrlkit-rs"
|
|
|
21
21
|
web = "https://github.com/qrlkit/qrlkit-web"
|
|
22
22
|
|
|
23
23
|
[repos.prs]
|
|
24
|
-
rs = "https://github.com/qrlkit/qrlkit-rs"
|
|
24
|
+
rs = "https://github.com/qrlkit/qrlkit-rs/pulls"
|
|
25
25
|
web = "https://github.com/qrlkit/qrlkit-web/pulls"
|
|
26
26
|
|
|
27
27
|
[qk.check]
|
|
@@ -77,23 +77,37 @@ and 2) have as little friction as possible:
|
|
|
77
77
|
|
|
78
78
|
## Install
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
### From package manager
|
|
81
|
+
|
|
82
|
+
A few package managers can be used to install the binary for your platform:
|
|
81
83
|
|
|
82
84
|
```
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
cargo install qrlkit
|
|
86
|
+
|
|
87
|
+
npm i -g qrlkit
|
|
88
|
+
|
|
89
|
+
bun add -g qrlkit
|
|
90
|
+
|
|
91
|
+
yarn global add qrlkit
|
|
86
92
|
|
|
87
|
-
# Then start init to set the defaults you want (shell, browser etc)
|
|
88
|
-
qrlkit init
|
|
89
93
|
```
|
|
90
94
|
|
|
91
|
-
|
|
95
|
+
### From Github release:
|
|
92
96
|
|
|
93
|
-
|
|
97
|
+
Install the latest release for Linux or macOS into `~/.local/bin`:
|
|
98
|
+
|
|
99
|
+
```sh
|
|
100
|
+
curl -fsSL https://raw.githubusercontent.com/qrlkit/qrlkit-rs/main/install.sh | sh
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### From Source
|
|
104
|
+
|
|
105
|
+
Clone repo and install qrlkit binary with cargo
|
|
94
106
|
|
|
95
107
|
```
|
|
96
|
-
|
|
108
|
+
git clone git@github.com:qrlkit/qrlkit-rs.git
|
|
109
|
+
cd qrlkit-rs
|
|
110
|
+
cargo install --path .
|
|
97
111
|
```
|
|
98
112
|
|
|
99
113
|
## Version 1 Roadmap
|
|
@@ -131,9 +145,9 @@ Current version is 0.5.5 but any minor version can ship with a breaking change u
|
|
|
131
145
|
- [x] dir hooks
|
|
132
146
|
- [x] browser hooks
|
|
133
147
|
- [x] run shell scripts
|
|
134
|
-
- [
|
|
135
|
-
- [
|
|
136
|
-
- [
|
|
148
|
+
- [x] automatic hints
|
|
149
|
+
- [x] hardcoded arg suggestions
|
|
150
|
+
- [x] constants
|
|
137
151
|
|
|
138
152
|
#### package managers ####
|
|
139
153
|
|
|
@@ -221,20 +235,57 @@ dirhook = "cd $dir && tree -L 1"
|
|
|
221
235
|
project = "~/dev/{repo}"
|
|
222
236
|
```
|
|
223
237
|
|
|
238
|
+
**constants**
|
|
239
|
+
|
|
240
|
+
Define reusable strings or lists in `[constants]`. Use `{constants.name}` in paths and URLs. For shared values, put `[constants]` in `constants.toml` beside the state file and use `{global.name}`.
|
|
241
|
+
|
|
242
|
+
```toml
|
|
243
|
+
[constants]
|
|
244
|
+
root = "~/dev"
|
|
245
|
+
namespaces = ["dev", "staging", "prod"]
|
|
246
|
+
|
|
247
|
+
[projects]
|
|
248
|
+
api = "{constants.root}/api"
|
|
249
|
+
```
|
|
250
|
+
|
|
224
251
|
**scripts**
|
|
225
252
|
|
|
226
253
|
Scripts run in Bash by default from the config's directory.
|
|
227
254
|
Reserved key `shell` overrides it with options `bash`, `sh`, and `zsh`.
|
|
228
|
-
Use `$` notation to pass arguments.
|
|
255
|
+
Use `$` notation to pass arguments. Use args to prompt users for inputs.
|
|
229
256
|
|
|
230
257
|
```toml
|
|
231
258
|
[kube.logs]
|
|
259
|
+
args = [
|
|
260
|
+
{ name = "namespace", enum = { ref = "constants.namespaces" } },
|
|
261
|
+
{ name = "pod" },
|
|
262
|
+
]
|
|
232
263
|
run = '''
|
|
233
264
|
kubectl logs --namespace "$1" "$2" --follow
|
|
234
265
|
'''
|
|
235
266
|
shell = "zsh"
|
|
236
267
|
```
|
|
237
268
|
|
|
269
|
+
**hints**
|
|
270
|
+
|
|
271
|
+
Comments with `hint: ` in them will be included in the terminal.
|
|
272
|
+
|
|
273
|
+
```toml
|
|
274
|
+
[launch]
|
|
275
|
+
# hint: Find your next mission
|
|
276
|
+
issues = "https://github.com/ratatui/ratatui/issues"
|
|
277
|
+
|
|
278
|
+
repo = "https://github.com/ratatui/ratatui" # hint: Browse the source code
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
Run `qrlkit launch` after importing the config:
|
|
282
|
+
|
|
283
|
+
```text
|
|
284
|
+
> issues Find your next mission
|
|
285
|
+
repo Browse the source code
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
|
|
238
289
|
## Contributing
|
|
239
290
|
|
|
240
291
|
Contributions are welcome!
|
package/package.json
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"README.md"
|
|
10
10
|
],
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"qrlkit-darwin-arm64": "0.
|
|
13
|
-
"qrlkit-darwin-x64": "0.
|
|
14
|
-
"qrlkit-linux-arm64": "0.
|
|
15
|
-
"qrlkit-linux-x64": "0.
|
|
12
|
+
"qrlkit-darwin-arm64": "0.9.2",
|
|
13
|
+
"qrlkit-darwin-x64": "0.9.2",
|
|
14
|
+
"qrlkit-linux-arm64": "0.9.2",
|
|
15
|
+
"qrlkit-linux-x64": "0.9.2"
|
|
16
16
|
},
|
|
17
17
|
"os": [
|
|
18
18
|
"linux",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"bugs": {
|
|
35
35
|
"url": "https://github.com/qrlkit/qrlkit-rs/issues"
|
|
36
36
|
},
|
|
37
|
-
"version": "0.
|
|
37
|
+
"version": "0.9.2"
|
|
38
38
|
}
|