@vforsh/rmatic 0.1.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 (2) hide show
  1. package/README.md +41 -0
  2. package/package.json +23 -0
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # rmatic CLI
2
+
3
+ CLI for the Release-o-matic API.
4
+
5
+ ## Install
6
+
7
+ ```
8
+ npm install -g @vforsh/rmatic
9
+ ```
10
+
11
+ ## Configuration
12
+
13
+ Config precedence: flags > env vars > config file.
14
+
15
+ - `RMATIC_BASE_URL`
16
+ - `RMATIC_TOKEN`
17
+
18
+ Config file (read-only):
19
+
20
+ ```
21
+ $XDG_CONFIG_HOME/rmatic/config.json
22
+ # or ~/.config/rmatic/config.json
23
+ ```
24
+
25
+ Example:
26
+
27
+ ```json
28
+ {
29
+ "baseUrl": "https://release-o-matic.example.com",
30
+ "token": "..."
31
+ }
32
+ ```
33
+
34
+ ## Usage
35
+
36
+ ```
37
+ rmatic --base-url https://… --token $RMATIC_TOKEN health
38
+ rmatic publish papa-cherry-2 vk master-21
39
+ rmatic releases list papa-cherry-2 vk --plain
40
+ rmatic rollback papa-cherry-2 vk --force
41
+ ```
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@vforsh/rmatic",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "bin": {
6
+ "rmatic": "./dist/index.js"
7
+ },
8
+ "exports": {
9
+ ".": "./dist/index.js"
10
+ },
11
+ "files": ["dist"],
12
+ "scripts": {
13
+ "build": "tsc -p tsconfig.json"
14
+ },
15
+ "dependencies": {
16
+ "@vforsh/rmatic-client": "0.1.0",
17
+ "cac": "^6.7.14",
18
+ "prompts": "^2.4.2"
19
+ },
20
+ "engines": {
21
+ "node": ">=20"
22
+ }
23
+ }