@billionaire-sh/cli 0.4.0 → 1.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.
- package/README.md +27 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -42,6 +42,29 @@ pnpm i -g @billionaire-sh/cli
|
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
45
|
+
## From the checkout: always the code as it stands
|
|
46
|
+
|
|
47
|
+
Homebrew and npm install a build, and a build is behind the checkout: a
|
|
48
|
+
command added today is not in the binary of last week. Whoever works in the
|
|
49
|
+
repository links the starter into a folder of the `PATH` once:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
ln -s ~/Projects/kadal/apps/billionaire/cli/bin/billionaire.mjs /opt/homebrew/bin/billionaire
|
|
53
|
+
billionaire --version
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
From then on `billionaire` runs `src/cli.ts` of that checkout — no build,
|
|
57
|
+
no release, nothing to upgrade. It needs the checkout installed
|
|
58
|
+
(`pnpm install`) and nothing else. The commands that work on the files of
|
|
59
|
+
the chart editions (`charts lock`, `charts seal`, `charts parse`,
|
|
60
|
+
`charts check`) look at the folder you call them from, so call them inside
|
|
61
|
+
the checkout whose files you mean.
|
|
62
|
+
|
|
63
|
+
The starter is three lines (`bin/billionaire.mjs`); the mechanism is
|
|
64
|
+
`@kolaveri/dev-tools/cli-from-source`, shared with the `order3000` CLI.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
45
68
|
## Shell completion (tab autocomplete)
|
|
46
69
|
|
|
47
70
|
`billionaire completion <shell>` prints a completion script for your
|
|
@@ -123,7 +146,7 @@ What follows from the editions' files is derived and checked in as a lock
|
|
|
123
146
|
(`libs/billionaire/charts/README.md`, "Succession" and "Mappings"): what
|
|
124
147
|
becomes of each account from one edition to the next, the counterpart of
|
|
125
148
|
each account on the other chart line, its place in each taxonomy edition,
|
|
126
|
-
and the rules its
|
|
149
|
+
and the rules its purposes stand for. A change of an account in
|
|
127
150
|
`meaning.json` ends with `lock`, and the diff of the locks is part of it:
|
|
128
151
|
|
|
129
152
|
```sh
|
|
@@ -147,15 +170,15 @@ billionaire charts seal --check
|
|
|
147
170
|
# The owner's: show what changed since the last seal — data as a table
|
|
148
171
|
# (account, field, was, is), locks as pairs of lines — then sign.
|
|
149
172
|
# ssh-keygen asks for the passphrase of the sealing key on the terminal.
|
|
150
|
-
billionaire charts seal
|
|
151
|
-
billionaire charts seal --key
|
|
173
|
+
billionaire charts seal # the key at ~/.ssh/billionaire/chart_seal
|
|
174
|
+
billionaire charts seal --key /path/to/key # a key file somewhere else
|
|
152
175
|
```
|
|
153
176
|
|
|
154
177
|
A number answers with one of:
|
|
155
178
|
|
|
156
179
|
| `status` | Meaning |
|
|
157
180
|
|---|---|
|
|
158
|
-
| `account` | The chart keeps an active account there — the only answer that may be booked on. Comes with name, account type, booking
|
|
181
|
+
| `account` | The chart keeps an active account there — the only answer that may be booked on. Comes with name, account type, the booking purposes it answers (with their conditions) and taxonomy position. |
|
|
159
182
|
| `inactive` | The platform keeps the account, but it is no longer booked on. |
|
|
160
183
|
| `reserved` | DATEV reserves the number (with the block and the page of the publication). Not an account. |
|
|
161
184
|
| `unknown` | The chart does not know the number. An account of an entity's own may take it. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@billionaire-sh/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Agent-friendly command-line interface for the billionaire platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"tsx": "^4.19.2",
|
|
26
26
|
"typescript": "^5.9.3",
|
|
27
27
|
"vitest": "^4.1.7",
|
|
28
|
-
"@billionaire/charts": "0.
|
|
28
|
+
"@billionaire/charts": "0.6.0",
|
|
29
29
|
"@kolaveri/eslint-config": "1.28.0",
|
|
30
30
|
"@kolaveri/prettier-config": "1.0.6",
|
|
31
31
|
"@kolaveri/tsconfig": "1.0.1"
|