archiver-ts 0.3.3 → 0.4.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 +8 -17
- package/dist/index.js +558 -671
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,13 +39,7 @@ Query and maintenance:
|
|
|
39
39
|
arv list [--restored] [--all] [--vault <vault>] [--no-interactive] [--plain]
|
|
40
40
|
arv log [YYYYMM | YYYYMM-YYYYMM | all]
|
|
41
41
|
arv log --id <log-id>
|
|
42
|
-
arv config
|
|
43
|
-
arv config edit
|
|
44
|
-
arv config update-check <on|off>
|
|
45
|
-
arv config vault-item-sep <separator>
|
|
46
|
-
arv config style <on|off>
|
|
47
|
-
arv config language <zh|en>
|
|
48
|
-
arv config no-command-action <help|list|unknown>
|
|
42
|
+
arv config
|
|
49
43
|
arv update [--repo <owner/repo>] [--install]
|
|
50
44
|
arv check
|
|
51
45
|
```
|
|
@@ -57,13 +51,13 @@ arv check
|
|
|
57
51
|
Run:
|
|
58
52
|
|
|
59
53
|
```bash
|
|
60
|
-
arv config
|
|
54
|
+
arv config
|
|
61
55
|
```
|
|
62
56
|
|
|
63
57
|
In the editor:
|
|
64
58
|
|
|
65
59
|
- Up/Down: activate config item
|
|
66
|
-
- Left/Right: switch select options, move cursor in input, or choose save/cancel action
|
|
60
|
+
- Left/Right: switch select options, move cursor in input, or choose save/cancel/reset-default action
|
|
67
61
|
- Type: edit input field text
|
|
68
62
|
- Enter: save current action (or quick-save on field)
|
|
69
63
|
- q/Esc: cancel
|
|
@@ -76,7 +70,7 @@ In the editor:
|
|
|
76
70
|
- `<archiveId>` is zero-padded to 4 digits
|
|
77
71
|
- default vault (`@`, id `0`): `<display-name>` is item name only
|
|
78
72
|
- non-default vault: `<display-name>` is `<vaultName>(<vaultId>)<sep><item>`
|
|
79
|
-
- `<sep>` comes from
|
|
73
|
+
- `<sep>` comes from config editor (`vault_item_sep`, default `::`)
|
|
80
74
|
|
|
81
75
|
Use `arv list --plain` for grep/script usage:
|
|
82
76
|
|
|
@@ -114,22 +108,19 @@ When you run `arv` without any subcommand, behavior is controlled by config:
|
|
|
114
108
|
|
|
115
109
|
If `no_command_action` is `unknown` and input is not TTY (e.g. piped/CI), `arv` falls back to help text for that run.
|
|
116
110
|
|
|
117
|
-
Set it
|
|
111
|
+
Set it in:
|
|
118
112
|
|
|
119
113
|
```bash
|
|
120
|
-
arv config
|
|
121
|
-
arv config no-command-action help
|
|
122
|
-
arv config no-command-action list
|
|
114
|
+
arv config
|
|
123
115
|
```
|
|
124
116
|
|
|
125
117
|
## Language
|
|
126
118
|
|
|
127
119
|
- default language is `zh`
|
|
128
|
-
- switch language
|
|
120
|
+
- switch language in:
|
|
129
121
|
|
|
130
122
|
```bash
|
|
131
|
-
arv config
|
|
132
|
-
arv config language en
|
|
123
|
+
arv config
|
|
133
124
|
```
|
|
134
125
|
|
|
135
126
|
## JSONC defaults and comments
|