Q: Does `--enable=cp` allow only `wush cp`, or are other `wush` commands also allowed?
- Dominant language
- Go
- Stars
- 1.5k
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
I'd like to run `wush serve` such that it is limited to only file uploads to a specific folder. Here's my current strategy:
```
cd /path/to/folder/
wush serve --enable=cp
```
Will this setup only support `wush cp `, or does it open up for more? For instance, does `wush rsync` operate also under `--enable=cp` or does that require, say, `--enable=ssh`?
The reason I'm asking is that, AFAIU, file transfer with `wush cp `;
```sh
$ wush cp --help
USAGE:
wush cp
Transfer files to a wush server.
```
will end up in the working directory where `wush serve` was launched, and it's not possible for someone to send files so they end up elsewhere on the "server". Is that correct? In contrast, it looks like the sender can send files anywhere on the server using `wush rsync` when that is supported;
```sh
wush rsync --help
USAGE:
wush rsync [flags] -- [rsync args]
Transfer files with rsync to/from a wush server.
Use wush serve on the computer you would like to transfer files to.
- Upload a local file:
$ wush rsync /local/path :/remote/path
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.