Q: Does `--enable=cp` allow only `wush cp`, or are other `wush` commands also allowed?
还没有人认领这个 Issue。
评估
调研方向
首先跟踪 wush serve --enable=cp 的授权流程,然后比较 wush cp 和 wush rsync 的入口点及其目标处理方式。完成的标准是记录 --enable=cp 允许哪些命令,以及上传是否能够离开服务器的工作目录。
由索引模型根据 Issue 内容生成。
描述
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 <file>, 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 <file>;
$ wush cp --help
USAGE:
wush cp <file>
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;
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
- 主要语言
- Go
- 星标
- 1.5k
- 派生
- 47
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/wush 的其他 Issue
-
Android client未关闭
难度 5/5 一周以上 新手友好度 20/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 20/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 2/5 1-3 小时 新手友好度 45/100
相似的 Issue
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug P2 reliability
难度 2/5 1-3 小时 新手友好度 88/100
afreidah/s3-orchestrator#1564 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
blinklabs-io/gouroboros#2577 ·
维护者通常 1 天内回复
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复