nushell / nushell/nushell.github.io

Add a chapter about errors

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

还没有人认领这个 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
  • try
  • do
  • error make
  • complete

贡献指南

打开贡献指南

从这里开始

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

调研方向

Issue 中没有列出文件、测试或入口点。首先查阅 Nushell 关于错误、trydo -ierror makecomplete 的文档,然后确认外部命令的非零退出代码的行为;完成标准是添加一个清晰解释每个所列主题的章节。

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
documentation
Issue 类型
文档
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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