@lbdudc/linea-cli 0.2.0 → 0.2.1
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
CHANGED
|
@@ -21,27 +21,11 @@ Every command works in two ways, with the same words: as `linea <command>` in a
|
|
|
21
21
|
Requires [Bun](https://bun.sh) and `git`.
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
bun add -g @lbdudc/linea-cli # then: linea
|
|
25
|
+
bunx @lbdudc/linea-cli # or run it once without installing
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
```powershell
|
|
31
|
-
# PowerShell, once:
|
|
32
|
-
Add-Content $PROFILE 'function linea { bun --no-env-file C:\path\to\linea-cli\dist\index.js @args }'
|
|
33
|
-
```
|
|
34
|
-
```bash
|
|
35
|
-
# bash/zsh, once:
|
|
36
|
-
echo 'linea() { bun --no-env-file /path/to/linea-cli/dist/index.js "$@"; }' >> ~/.bashrc
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
(`dist/index.js` needs Bun, not Node.)
|
|
40
|
-
|
|
41
|
-
`bun run build` makes `dist/index.js`, which is what `linea` runs: it works from **any folder** (running `src/index.tsx` directly
|
|
42
|
-
needs this folder's `bunfig.toml`, so only do that to develop the CLI: `bun run dev`).
|
|
43
|
-
|
|
44
|
-
`linea doctor` says whether everything is in place: git, the workspace, an editor, the git host and, with `--online`, the server.
|
|
28
|
+
From a checkout of [lbdudc/linea](https://github.com/lbdudc/linea): `npm install && npm run build -w @lbdudc/linea-cli`, then `bun packages/cli/dist/index.js`.
|
|
45
29
|
|
|
46
30
|
## Who does what
|
|
47
31
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// package.json
|
|
3
3
|
var package_default = {
|
|
4
4
|
name: "@lbdudc/linea-cli",
|
|
5
|
-
version: "0.2.
|
|
5
|
+
version: "0.2.1",
|
|
6
6
|
type: "module",
|
|
7
7
|
description: "LINEA from the terminal: manage software product lines and generate products. Needs the Bun runtime.",
|
|
8
8
|
main: "src/index.tsx",
|
|
@@ -22,8 +22,8 @@ var package_default = {
|
|
|
22
22
|
},
|
|
23
23
|
dependencies: {
|
|
24
24
|
"@lbdudc/bango": "^0.2.0",
|
|
25
|
-
"@lbdudc/linea-core": "^0.2.
|
|
26
|
-
"@lbdudc/linea-git": "^0.2.
|
|
25
|
+
"@lbdudc/linea-core": "^0.2.1",
|
|
26
|
+
"@lbdudc/linea-git": "^0.2.1",
|
|
27
27
|
"@opentui/core": "^0.4.5",
|
|
28
28
|
"@opentui/solid": "^0.4.5",
|
|
29
29
|
langium: "^4.4.0",
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @bun
|
|
3
3
|
import {
|
|
4
4
|
package_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-f3ema63m.js";
|
|
6
6
|
|
|
7
7
|
// src/index.tsx
|
|
8
8
|
var args = process.argv.slice(2);
|
|
@@ -36,5 +36,5 @@ if (args.length > 0) {
|
|
|
36
36
|
}
|
|
37
37
|
var {
|
|
38
38
|
runInteractive
|
|
39
|
-
} = await import("./chunk-
|
|
39
|
+
} = await import("./chunk-y96zykhz.js");
|
|
40
40
|
await runInteractive();
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
# Needs these CI/CD variables:
|
|
26
26
|
# LINEA_CI_TOKEN a token that can read the product repositories and the registry of packages, and
|
|
27
27
|
# comment on merge requests
|
|
28
|
-
# LINEA_CI_PACKAGE where linea-ci is installed from (
|
|
28
|
+
# LINEA_CI_PACKAGE where linea-ci is installed from (default: the latest @lbdudc/linea-ci on npm; pin one
|
|
29
|
+
# with "@lbdudc/linea-ci@0.2.0", or give a git URL or tarball)
|
|
29
30
|
# LINEA_URL, LINEA_TOKEN only for releases: the address of LINEA and a session token of a user who
|
|
30
31
|
# can generate the products
|
|
31
32
|
|
|
@@ -42,7 +43,7 @@ workflow:
|
|
|
42
43
|
- if: '$CI_COMMIT_TAG'
|
|
43
44
|
|
|
44
45
|
variables:
|
|
45
|
-
LINEA_CI_PACKAGE: "
|
|
46
|
+
LINEA_CI_PACKAGE: "@lbdudc/linea-ci"
|
|
46
47
|
LINEA_CI_MAX_PRODUCTS: "5"
|
|
47
48
|
LINEA_CI_MAX_SAMPLES: "30"
|
|
48
49
|
LINEA_CI_MAX_CCN: "15"
|
|
@@ -59,7 +60,7 @@ stages:
|
|
|
59
60
|
.linea-ci:
|
|
60
61
|
image: node:22
|
|
61
62
|
before_script:
|
|
62
|
-
#
|
|
63
|
+
# only needed when LINEA_CI_PACKAGE is a git URL on this GitLab: it is cloned with the token of the job
|
|
63
64
|
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/".insteadOf "https://${CI_SERVER_HOST}/"
|
|
64
65
|
- npm install --global "$LINEA_CI_PACKAGE"
|
|
65
66
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lbdudc/linea-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "LINEA from the terminal: manage software product lines and generate products. Needs the Bun runtime.",
|
|
6
6
|
"main": "src/index.tsx",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@lbdudc/bango": "^0.2.0",
|
|
23
|
-
"@lbdudc/linea-core": "^0.2.
|
|
24
|
-
"@lbdudc/linea-git": "^0.2.
|
|
23
|
+
"@lbdudc/linea-core": "^0.2.1",
|
|
24
|
+
"@lbdudc/linea-git": "^0.2.1",
|
|
25
25
|
"@opentui/core": "^0.4.5",
|
|
26
26
|
"@opentui/solid": "^0.4.5",
|
|
27
27
|
"langium": "^4.4.0",
|