nushell / nushell/nushell.github.io

Formats for loading data directly into tables from docs not matching actual support

未关闭
#2,139 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
258
派生
561
平均合并
3 小时 20 分钟
30 天内合并 PR
15

描述

Hi,

I tried opening an xls file with the open command and got garbled output. I checked the docs and saw that it was supposed to be able to open xls files. Looked into what "from commands" actually existed using the sample command from the open docs (See copy of command at bottom) and xls was not in the list. I'm not sure what is the best way to "correct" this mismatch.

The list I'm referring to in the docs is defined here

The following are in the docs but not supported in my version of nu (0.111.0)

  • eml
  • ics
  • ini
  • vcf
  • xls

The following show when I run the command to get the "from commands" in scope but do not appear in the documentation:

  • msgpack
  • msgpackz

Command from Open Docs Showing List of From formats

Command

> scope commands
    | where name starts-with "from "
    | insert extension { get name | str replace -r "^from " "" | $"*.($in)" }
    | select extension name
    | rename extension command

Output for me on nu 0.111.0

╭────┬────────────┬───────────────╮
│  # │ extension  │    command    │
├────┼────────────┼───────────────┤
│  0 │ *.csv      │ from csv      │
│  1 │ *.json     │ from json     │
│  2 │ *.msgpack  │ from msgpack  │
│  3 │ *.msgpackz │ from msgpackz │
│  4 │ *.nuon     │ from nuon     │
│  5 │ *.ods      │ from ods      │
│  6 │ *.ssv      │ from ssv      │
│  7 │ *.toml     │ from toml     │
│  8 │ *.tsv      │ from tsv      │
│  9 │ *.url      │ from url      │
│ 10 │ *.xlsx     │ from xlsx     │
│ 11 │ *.xml      │ from xml      │
│ 12 │ *.yaml     │ from yaml     │
│ 13 │ *.yml      │ from yml      │
╰────┴────────────┴───────────────╯

贡献指南

打开贡献指南

从这里开始

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

调研方向

将 book/loading_data.md 中的格式列表与针对 Nushell 0.111.0 的已记录 scope commands 查询输出进行比较。确定哪个列表是权威列表,酌情更新 loading-data 和 open-command 文档,然后重新运行查询,以验证文档中列出的格式与实际支持的格式一致。

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

评估

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

把新 issue 发到你的邮箱

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