nushell / nushell/nushell.github.io
Add a chapter about errors
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 258
- 派生
- 561
- 平均合并
- 3 小时 20 分钟
- 30 天内合并 PR
- 15
描述
One concept that I still find quite hard to grasp are Nushell's errors.
As far as I can tell, they behave like raised exceptions in a language like Python.
They bubble up, but can be caught with try or do -i.
However, I haven't seen that spelled out yet.
I see that nushell errors are also created if external commands exit with a non-zero exit code.
But also that isn't mentioned in the book.
I would be happy to add a chapter about errors in Nushell if someone could me guide through the things I am unsure about.
Topics to cover:
- behavior of errors
trydoerror makecomplete
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
Issue 中没有列出文件、测试或入口点。首先查阅 Nushell 关于错误、try、do -i、error make 和 complete 的文档,然后确认外部命令的非零退出代码的行为;完成标准是添加一个清晰解释每个所列主题的章节。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100