nemar-cli 0.10.18-PR1767.bfd6d6e → 0.10.18-PR1772.1d5c745
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 +16 -3
- package/dist/index.js +392 -357
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -331,6 +331,8 @@ nemar admin publish approve <dataset-id> --force
|
|
|
331
331
|
# Approve over a review that is not a pass
|
|
332
332
|
nemar admin publish approve <dataset-id> --acknowledge-identifier-screen "<reason>"
|
|
333
333
|
# Approve over a screen that needs review
|
|
334
|
+
nemar admin publish approve <dataset-id> --request-id <n>
|
|
335
|
+
# Approve only if request n is the one in force
|
|
334
336
|
nemar admin publish deny <dataset-id> # Deny publication request
|
|
335
337
|
nemar admin publish screen <dataset-id> # Re-run the identifier screen
|
|
336
338
|
```
|
|
@@ -343,6 +345,16 @@ Each request also gets an automated review of what the depositor submitted,
|
|
|
343
345
|
which `admin publish list` and `admin publish show` state.
|
|
344
346
|
An approval over a review that is not a pass needs `--force` and is recorded
|
|
345
347
|
with your account.
|
|
348
|
+
An approval is for the request it showed, and the API refuses it when that
|
|
349
|
+
request was denied or filed again since (`--request-id` names it yourself).
|
|
350
|
+
An approval started from the website is run by a workflow that is handed a
|
|
351
|
+
token in the environment variable `NEMAR_APPROVAL_DISPATCH_TOKEN` and runs
|
|
352
|
+
`approve --resume --yes` with it, so the token is never typed at a terminal.
|
|
353
|
+
With the variable set, the API records the administrator who clicked as the
|
|
354
|
+
approver, and `--force`, `--acknowledge-identifier-screen` and
|
|
355
|
+
`--skip-ci-check` are refused.
|
|
356
|
+
Without the variable the command is your own approval, recorded under your
|
|
357
|
+
account, and `next` never reads it.
|
|
346
358
|
|
|
347
359
|
### Admin Commands
|
|
348
360
|
|
|
@@ -459,9 +471,10 @@ See [the Zenodo testing guide](https://docs.nemar.org/develop/zenodo-testing/) f
|
|
|
459
471
|
### CLI Usage
|
|
460
472
|
|
|
461
473
|
```bash
|
|
462
|
-
NEMAR_API_KEY
|
|
463
|
-
NEMAR_NO_BROWSER=1
|
|
464
|
-
NEMAR_NO_COLOR
|
|
474
|
+
NEMAR_API_KEY # API key (alternative to `nemar auth login -k`)
|
|
475
|
+
NEMAR_NO_BROWSER=1 # Never try to open a browser during sign-in (same as --no-open)
|
|
476
|
+
NEMAR_NO_COLOR # Disable colored output
|
|
477
|
+
NEMAR_APPROVAL_DISPATCH_TOKEN # Dispatch token of a web approval; set only by the web approval executor, never by a person
|
|
465
478
|
```
|
|
466
479
|
|
|
467
480
|
### Testing
|