@s-analytics/cli 0.1.0 → 0.1.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 +20 -0
- package/package.json +6 -32
- package/published.js +200 -0
- package/dist/published.js +0 -174
package/README.md
CHANGED
|
@@ -19,4 +19,24 @@ s login --server-url https://s.example.com
|
|
|
19
19
|
s whoami
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
Set `S_CLI_SERVER_URL` to target the same S server for every command without passing `--server-url`.
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
export S_CLI_SERVER_URL=https://s.example.com
|
|
26
|
+
s login
|
|
27
|
+
s whoami
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The `--server-url` flag overrides the environment variable for one command.
|
|
31
|
+
|
|
22
32
|
Run `s --help` to list commands and `s <command> --help` to inspect a command.
|
|
33
|
+
|
|
34
|
+
## Automation
|
|
35
|
+
|
|
36
|
+
Use `--non-interactive` to fail when required input is missing and `--json-errors` to receive versioned JSON failures on stderr.
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
s --non-interactive --json-errors apps list
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Data is written to stdout. Progress, warnings, stream lifecycle events, and errors are written to stderr. Commands that create files do not overwrite existing files unless `--force` is supplied.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s-analytics/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Command-line interface for S Analytics.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -10,42 +10,16 @@
|
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|
|
12
12
|
"bin": {
|
|
13
|
-
"s": "./
|
|
13
|
+
"s": "./published.js"
|
|
14
14
|
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist",
|
|
17
|
-
"README.md"
|
|
18
|
-
],
|
|
19
15
|
"engines": {
|
|
20
16
|
"node": ">=20"
|
|
21
17
|
},
|
|
22
18
|
"publishConfig": {
|
|
23
19
|
"access": "public"
|
|
24
20
|
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"lint": "eslint .",
|
|
30
|
-
"format": "prettier --write .",
|
|
31
|
-
"format:check": "prettier --check .",
|
|
32
|
-
"typecheck": "bunx tsc --noEmit",
|
|
33
|
-
"quality:checks": "bun run format:check && bun run lint && bun run typecheck"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@elysia/eden": "catalog:",
|
|
37
|
-
"@workspace/cli-common": "workspace:*",
|
|
38
|
-
"commander": "^14.0.3",
|
|
39
|
-
"env-paths": "^4.0.0",
|
|
40
|
-
"yaml": "catalog:",
|
|
41
|
-
"@eslint/js": "catalog:",
|
|
42
|
-
"@types/bun": "catalog:",
|
|
43
|
-
"@workspace/eslint-config-typescript": "workspace:*",
|
|
44
|
-
"elysia": "catalog:",
|
|
45
|
-
"eslint": "catalog:",
|
|
46
|
-
"eslint-plugin-import": "catalog:",
|
|
47
|
-
"prettier": "catalog:",
|
|
48
|
-
"typescript": "catalog:",
|
|
49
|
-
"typescript-eslint": "catalog:"
|
|
50
|
-
}
|
|
21
|
+
"files": [
|
|
22
|
+
"published.js",
|
|
23
|
+
"README.md"
|
|
24
|
+
]
|
|
51
25
|
}
|