Lack of documentation/Help for settings options

Ouverte
#819 2 commentaires 1 réaction 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
Une demi-journée
Accessibilité débutants
42/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
python
Domaine
cli

Piste de recherche

The payload names only the CLI commands --set, --get, --info and the settings list shown by --set with no argument, so start by finding where those commands are handled in the Python CLI. Decide where the acceptable values for each setting would come from, since the issue does not say, and confirm with a maintainer before coding. Done means --set or --get also prints a human-readable description of allowed values, such as the bluetooth.mode options, and the existing output stays unchanged.

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

Description

Related to https://github.com/meshtastic/meshtastic/issues/2005

There is a lack of built-in documentation for what settings accept what values. for example if you list the settings with --set you just get a list of settable settings, but not what acceptable inputs are:

Image

Once you read or set something you only get the raw value ie:

Image

And the --info returns in a JSON with no acceptable input values.

I'm recommending two changes:

Change 1:

Add an option to display the acceptable input for a given command. taking the bluetooth settings from https://github.com/meshtastic/meshtastic/issues/2005:

bluetooth:
    bluetooth.enabled
             0 = Bluetooth Disabled
             1 = Bluetooth Enabled
    bluetooth.fixed_pin
            xxxxxx = 6 digits for pin
    bluetooth.mode
           0 = Random Pin
           1 = Fixed pin (Requires fixed_pin to be set)
           2 = No Pin

Change 2:

Modify how the --set and --get command respond to include a human readable format as well. Something like this:

Image
Langage dominant
Python
Étoiles
855
Forks
355
Merge moyen
3 j 3 h
PR mergées (30 j)
12

Préparer son environnement

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.

Autres issues de meshtastic/python

Toutes les issues de meshtastic/python

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

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