sefy-cli 0.3.1 → 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.
Files changed (2) hide show
  1. package/README.md +30 -13
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -106,9 +106,19 @@ error: 2 items match "ma":
106
106
  narrow the text, or use an id
107
107
  ```
108
108
 
109
- Two machines, two copies, both edited? Fold one into the other. Where they
110
- disagree about the same item, sefy keeps both versions rather than letting a
111
- timestamp decide which password you get to keep:
109
+ Several machines? `sefy sync` carries the vault through a transport and folds
110
+ what comes back into this one:
111
+
112
+ ```
113
+ $ sefy sync
114
+ Master password:
115
+ synced "vault" through github
116
+ merged: 2 added, 0 updated, 14 unchanged
117
+ ```
118
+
119
+ Or fold in a copy you carried across by hand. Either way, where the two disagree
120
+ about the same item, sefy keeps both versions rather than letting a timestamp
121
+ decide which password you get to keep:
112
122
 
113
123
  ```
114
124
  $ sefy merge ~/from-laptop.bak
@@ -141,17 +151,21 @@ named `sefy-plugin-*`, found in sefy's data directory or on `PATH`. sefy knows
141
151
  nothing about git, FTP or any cloud drive - it asks a plugin what it can do and
142
152
  what happened.
143
153
 
154
+ `sefy-plugin-github` ships alongside the CLI and keeps the vault in a git
155
+ repository - point `SEFY_GITHUB_REPO` at one and `sefy sync` does the rest.
156
+ Authentication is whatever git already does on the machine, so no token is
157
+ stored anywhere.
158
+
144
159
  ```
145
160
  $ sefy plugin list
146
- ftp 0.2.1 push
147
161
  future 9.0.0 unusable: it speaks protocol 99 and this build speaks 1
148
- github 0.1.0 pull, push
162
+ github 0.4.0 pull, push
149
163
  ```
150
164
 
151
165
  A transport is handed the **path of the sealed file** and nothing else - no
152
166
  master password, no key, no item. What it carries is what anyone would find on
153
- your disk: a blob it cannot read. That is also why a plugin cannot merge; it
154
- fetches the other copy to a file, and `sefy merge` folds the two together where
167
+ your disk: a blob it cannot read. That is also why a plugin cannot merge: it
168
+ moves the other copy to a file, and sefy folds the two together itself, where
155
169
  both sides can actually be read.
156
170
 
157
171
  Broken plugins are listed with the reason rather than skipped: an omitted line
@@ -194,7 +208,8 @@ curl -fsSL https://raw.githubusercontent.com/lacodda/sefy/main/tools/install.sh
194
208
 
195
209
  On Windows use the PowerShell line above: `install.sh` carries the macOS and Linux builds only, and run from Git Bash it stops with a pointer back here.
196
210
 
197
- **cargo** - `cargo install sefy`
211
+ **cargo** - `cargo install sefy` (and `cargo install sefy-plugin-github` for the
212
+ git transport)
198
213
 
199
214
  **npm** - `npm install -g sefy-cli`
200
215
 
@@ -203,7 +218,9 @@ On Windows use the PowerShell line above: `install.sh` carries the macOS and Lin
203
218
  `PATH`.
204
219
 
205
220
  Both installers take the newest release by default; set `SEFY_VERSION` to a tag
206
- to pin one, and `SEFY_INSTALL_DIR` to choose where the binary lands.
221
+ to pin one, and `SEFY_INSTALL_DIR` to choose where the binary lands. They also
222
+ place any transport the archive carries into sefy's plugins directory, so
223
+ `sefy plugin list` finds it without a second step.
207
224
 
208
225
  Shell completions: `sefy completions bash` (also `zsh`, `fish`, `powershell`,
209
226
  `elvish`).
@@ -220,10 +237,10 @@ The database inside the ciphertext is versioned separately, and it does move:
220
237
  from 0.1.x opens, is migrated on the way in, and is still readable by 0.1.x
221
238
  afterwards - the file on disk did not change shape.
222
239
 
223
- The **plugin protocol is at version 1** as of 0.3.0. Optional fields may be
224
- added to the manifest without breaking a plugin that predates them; changing
225
- what an existing field means would arrive as version 2, with both accepted for a
226
- time.
240
+ The **plugin protocol is at version 1** as of 0.3.0, and 0.4.0 put it to work
241
+ without changing it. Optional fields may be added to the manifest without
242
+ breaking a plugin that predates them; changing what an existing field means
243
+ would arrive as version 2, with both accepted for a time.
227
244
 
228
245
  Released versions and what landed in each: [CHANGELOG on the Releases page](https://github.com/lacodda/sefy/releases).
229
246
 
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "sefy-cli",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "sefy": {
5
- "binary": "v0.3.1"
5
+ "binary": "v0.4.0"
6
6
  },
7
7
  "description": "An inconspicuous encrypted store for notes, credentials and files",
8
8
  "license": "MIT",