nushell / nushell/nushell.github.io

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

Aperta
#2,139 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
TypeScript
Stelle
258
Fork
561
Merge medio
3h 20m
PR unite (30g)
15

Descrizione

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      │
╰────┴────────────┴───────────────╯

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Confronta l'elenco dei formati in book/loading_data.md con l'output della query documentata scope commands per Nushell 0.111.0. Determina quale elenco sia quello autorevole, aggiorna di conseguenza la documentazione di loading-data e open-command, quindi esegui nuovamente la query per verificare che i formati documentati corrispondano a quelli effettivamente supportati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
shell
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.