@mistweaverco/kulala-cli 0.3.0 → 0.5.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.
Files changed (3) hide show
  1. package/README.md +57 -0
  2. package/dist/cli.cjs +1838 -9
  3. package/package.json +4 -1
package/README.md CHANGED
@@ -151,6 +151,63 @@ export KULALA_CORE_PATH=/path/to/kulala-core/dist/kulala-core
151
151
  node dist/cli.cjs run file.http
152
152
  ```
153
153
 
154
+ ## Docker
155
+
156
+ ### Run docker interactively and pseudo-TTY:
157
+
158
+ Run interactively with a mounted `.http` file:
159
+
160
+ ```sh
161
+ docker run -it \
162
+ -v ${PWD}/test.http:/app/test.http \
163
+ ghcr.io/mistweaverco/kulala-cli:latest \
164
+ run test.http \
165
+ --name
166
+ ```
167
+
168
+ ### Run docker non-interactively, but with a pseudo-TTY:
169
+
170
+ Run one request by block name (`###` name) with
171
+ a mounted `.http` file and pseudo-TTY:
172
+
173
+ ```sh
174
+ docker run -t \
175
+ -v ${PWD}/test.http:/app/test.http \
176
+ ghcr.io/mistweaverco/kulala-cli:latest \
177
+ run test.http \
178
+ --name "My Request Name"
179
+ ```
180
+
181
+ ### Run docker non-interactively and without a pseudo-TTY; all requests in a directory:
182
+
183
+ Run all requests in a directory without
184
+ a pseudo-TTY (for example, in CI):
185
+
186
+ ```sh
187
+ docker run \
188
+ -v ${PWD}/http-files-dir:/app/http-files-dir \
189
+ ghcr.io/mistweaverco/kulala-cli:latest \
190
+ run ./http-files-dir
191
+ ```
192
+
193
+ ### Build docker and push to GitHub Container Registry:
194
+
195
+ #### Build and push to GitHub Container Registry:
196
+
197
+ ```sh
198
+ docker buildx build --push \
199
+ -t ghcr.io/mistweaverco/kulala-cli:latest \
200
+ -f Dockerfile .
201
+ ```
202
+
203
+ #### Build and push to Docker Hub:
204
+
205
+ ```sh
206
+ docker buildx build --push \
207
+ -t mistweaverco/kulala-cli:latest \
208
+ -f Dockerfile .
209
+ ```
210
+
154
211
  [logo]: https://raw.githubusercontent.com/mistweaverco/kulala-cli/main/assets/logo.svg
155
212
  [discord]: https://mistweaverco.com/discord
156
213
  [badge-discord]: https://mistweaverco.com/assets/badges/discord.svg