qrlkit 0.9.1 → 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.
Files changed (2) hide show
  1. package/README.md +46 -16
  2. 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
- *Step 1* Clone repo and install qrlkit binary
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
- git clone git@github.com:qrlkit/qrlkit-rs.git
84
- cd qrlkit-rs
85
- cargo install --path .
85
+ cargo install qrlkit
86
+
87
+ npm i -g qrlkit
88
+
89
+ bun add -g qrlkit
90
+
91
+ yarn global add qrlkit
92
+
93
+ ```
94
+
95
+ ### From Github release:
86
96
 
87
- # Then start init to set the defaults you want (shell, browser etc)
88
- qrlkit init
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
89
101
  ```
90
102
 
91
- *Step 2* Write some config you want
103
+ ### From Source
92
104
 
93
- *Step 3* Add the config
105
+ Clone repo and install qrlkit binary with cargo
94
106
 
95
107
  ```
96
- qrlkit add shortcuts.toml
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
@@ -132,8 +146,8 @@ Current version is 0.5.5 but any minor version can ship with a breaking change u
132
146
  - [x] browser hooks
133
147
  - [x] run shell scripts
134
148
  - [x] automatic hints
135
- - [ ] hardcoded arg suggestions
136
- - [ ] constants
149
+ - [x] hardcoded arg suggestions
150
+ - [x] constants
137
151
 
138
152
  #### package managers ####
139
153
 
@@ -221,14 +235,31 @@ 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
  '''
@@ -244,15 +275,14 @@ Comments with `hint: ` in them will be included in the terminal.
244
275
  # hint: Find your next mission
245
276
  issues = "https://github.com/ratatui/ratatui/issues"
246
277
 
247
- # hint: Browse the source code
248
- repo = "https://github.com/ratatui/ratatui"
278
+ repo = "https://github.com/ratatui/ratatui" # hint: Browse the source code
249
279
  ```
250
280
 
251
281
  Run `qrlkit launch` after importing the config:
252
282
 
253
283
  ```text
254
284
  > issues Find your next mission
255
- repo Browse the source code
285
+ repo Browse the source code
256
286
  ```
257
287
 
258
288
 
package/package.json CHANGED
@@ -9,10 +9,10 @@
9
9
  "README.md"
10
10
  ],
11
11
  "optionalDependencies": {
12
- "qrlkit-darwin-arm64": "0.9.1",
13
- "qrlkit-darwin-x64": "0.9.1",
14
- "qrlkit-linux-arm64": "0.9.1",
15
- "qrlkit-linux-x64": "0.9.1"
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.9.1"
37
+ "version": "0.9.2"
38
38
  }