nushell / nushell/nushell.github.io

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

Ouverte
#2,139 8 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Langage dominant
TypeScript
Étoiles
258
Forks
561
Merge moyen
3 h 20 min
PR mergées (30 j)
15

Description

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

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Comparez la liste des formats dans book/loading_data.md avec la sortie de la requête documentée scope commands pour Nushell 0.111.0. Déterminez quelle liste fait autorité, mettez à jour la documentation de loading-data et open-command en conséquence, puis relancez la requête pour vérifier que les formats documentés correspondent à ceux réellement pris en charge.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
shell
Domaine
documentation
Type d'issue
Documentation
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.