handling and editing a multi variable #2

Open
opened 2024-09-04 10:32:57 +02:00 by gremond · 0 comments
Member

With a dictionnary like this one:

---
#hello:
#  #type: "toto"
#  default: world
version: 1.1
varname23:
  type: string
  multi: true
  default:
    - "1"
    - "2"

it is actually possible to modified a multi variable, it is handled, but the edition mode is counter intuitive:

./rougail-cli/bin/rougail -m dict  --step.user_data questionary
? 📓 varname23  (Finish with 'Alt+Enter' or 'Esc then Enter')
> 16
  2568
╭────────────────────────── Caption ──────────────────────────╮
│ Variable                           Default value            │
│ Undocumented variable              Modified value           │
│ Undocumented but modified variable (Original default value) │
│ Unmodifiable variable                                       │
╰─────────────────────────────────────────────────────────────╯
Variables:
┗━━ 📓 varname23 :
    ┣━━ 16  (1)
    ┗━━ 2568  (2)
    ```
With a dictionnary like this one: ``` --- #hello: # #type: "toto" # default: world version: 1.1 varname23: type: string multi: true default: - "1" - "2" ``` it is actually possible to modified a multi variable, it is handled, but the edition mode is counter intuitive: ``` ./rougail-cli/bin/rougail -m dict --step.user_data questionary ? 📓 varname23 (Finish with 'Alt+Enter' or 'Esc then Enter') > 16 2568 ╭────────────────────────── Caption ──────────────────────────╮ │ Variable Default value │ │ Undocumented variable Modified value │ │ Undocumented but modified variable (Original default value) │ │ Unmodifiable variable │ ╰─────────────────────────────────────────────────────────────╯ Variables: ┗━━ 📓 varname23 : ┣━━ 16 (1) ┗━━ 2568 (2) ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: stove/rougail-user-data-questionary#2
No description provided.