git-annex-shell now exclusively used for all remote access
This commit is contained in:
parent
30e0065ab9
commit
700aed13cf
6 changed files with 102 additions and 125 deletions
|
@ -1,3 +1,5 @@
|
|||
[[done]]
|
||||
|
||||
I've been considering adding a `git-annex-shell` command. This would
|
||||
be similar to `git-shell` (and in fact would pass unknown commands off to
|
||||
`git-shell`).
|
||||
|
@ -11,38 +13,3 @@ be similar to `git-shell` (and in fact would pass unknown commands off to
|
|||
* Could possibly allow multiple things to be done with one ssh connection
|
||||
in future.
|
||||
* Allows expanding `~` and `~user` in repopath on the remote system.
|
||||
|
||||
## Design
|
||||
|
||||
`git-annex-shell -c <command> <repopath> <arguments>`
|
||||
|
||||
### options
|
||||
|
||||
Need at least `--quiet`, `--backend`, `--key`, `--force`
|
||||
|
||||
### commands
|
||||
|
||||
* `configlist repopath`
|
||||
|
||||
Returns `git config --list`, for use by `tryGitConfigRead`.
|
||||
|
||||
May filter the listed config to only the options git-annex really needs,
|
||||
to prevent info disclosure.
|
||||
|
||||
* `inannex repopath key ...`
|
||||
|
||||
Checks if the keys are in the annex; shell exits zero if so.
|
||||
|
||||
* `dropkey repopath key ... `
|
||||
|
||||
Same as `git annex dropkey`, and taking the same dashed options.
|
||||
|
||||
* `setkey repopath tmpfile`
|
||||
|
||||
Same as `git annex setkey`, and taking the same dashed options.
|
||||
|
||||
### TODO
|
||||
|
||||
* To be usable as a locked down shell, needs a way to launch the
|
||||
rsync server, for file receiving. Safely?
|
||||
* Also needs a way to support receiving files by scp.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue