Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Q: Does `--enable=cp` allow only `wush cp`, or are other `wush` commands also allowed?

未关闭
#115 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
25/100
Issue 类型
文档
描述清晰度
需要澄清
活跃度
停滞
技术栈
go
领域
cli, security

调研方向

首先跟踪 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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

coder/wush 的其他 Issue

查看 coder/wush 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。