sefy-cli 0.3.0 → 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 +32 -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
@@ -192,7 +206,10 @@ macOS / Linux:
192
206
  curl -fsSL https://raw.githubusercontent.com/lacodda/sefy/main/tools/install.sh | sh
193
207
  ```
194
208
 
195
- **cargo** - `cargo install sefy`
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.
210
+
211
+ **cargo** - `cargo install sefy` (and `cargo install sefy-plugin-github` for the
212
+ git transport)
196
213
 
197
214
  **npm** - `npm install -g sefy-cli`
198
215
 
@@ -201,7 +218,9 @@ curl -fsSL https://raw.githubusercontent.com/lacodda/sefy/main/tools/install.sh
201
218
  `PATH`.
202
219
 
203
220
  Both installers take the newest release by default; set `SEFY_VERSION` to a tag
204
- 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.
205
224
 
206
225
  Shell completions: `sefy completions bash` (also `zsh`, `fish`, `powershell`,
207
226
  `elvish`).
@@ -218,10 +237,10 @@ The database inside the ciphertext is versioned separately, and it does move:
218
237
  from 0.1.x opens, is migrated on the way in, and is still readable by 0.1.x
219
238
  afterwards - the file on disk did not change shape.
220
239
 
221
- The **plugin protocol is at version 1** as of 0.3.0. Optional fields may be
222
- added to the manifest without breaking a plugin that predates them; changing
223
- what an existing field means would arrive as version 2, with both accepted for a
224
- 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.
225
244
 
226
245
  Released versions and what landed in each: [CHANGELOG on the Releases page](https://github.com/lacodda/sefy/releases).
227
246
 
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "sefy-cli",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "sefy": {
5
- "binary": "v0.3.0"
5
+ "binary": "v0.4.0"
6
6
  },
7
7
  "description": "An inconspicuous encrypted store for notes, credentials and files",
8
8
  "license": "MIT",