| 1341 | out << "Usage: git-crypt ls-gpg-users" << std::endl; |
| 1342 | } |
| 1343 | int ls_gpg_users (int argc, const char** argv) // TODO |
| 1344 | { |
| 1345 | // Sketch: |
| 1346 | // Scan the sub-directories in .git-crypt/keys, outputting something like this: |
| 1347 | // ==== |
| 1348 | // Key version 0: |
| 1349 | // 0x143DE9B3F7316900 Andrew Ayer <andrew@example.com> |
| 1350 | // 0x4E386D9C9C61702F ??? |
| 1351 | // Key version 1: |
| 1352 | // 0x143DE9B3F7316900 Andrew Ayer <andrew@example.com> |
| 1353 | // 0x1727274463D27F40 John Smith <smith@example.com> |
| 1354 | // 0x4E386D9C9C61702F ??? |
| 1355 | // ==== |
| 1356 | // To resolve a long hex ID, use a command like this: |
| 1357 | // gpg --options /dev/null --fixed-list-mode --batch --with-colons --list-keys 0x143DE9B3F7316900 |
| 1358 | |
| 1359 | std::clog << "Error: ls-gpg-users is not yet implemented." << std::endl; |
| 1360 | return 1; |
| 1361 | } |
| 1362 | |
| 1363 | void help_export_key (std::ostream& out) |
| 1364 | { |