Skip to content

Discuss and possibly implement --interactive CLI arguments #158

@andrewtavis

Description

@andrewtavis

Terms

Description

This issue is first a discussion and then potentially an implementation of an --interactive (-i) command for the Scribe-Data CLI. This might help users more easily explore and onboard to the CLI by providing options that they can choose from :)

It could work something like:

scribe-data query -i

Language options:
--------------------------------
| 1. English | 2. French | ... |
--------------------------------

Please enter the languages to query data for, their numbers or (a) for all languages: a

Word type options:
-----------------------------
| 1. nouns | 2. verbs | ... |
-----------------------------

Please enter the word types to query data for, their numbers or (a) for all word types: 1
File type to export (json, csv, tsv, sqlite) [json]: json
Export directory path [./scribe_data_json_export]:
Overwrite existing data without asking (y, n) [n]: y

Querying nouns for all languages that will be exported as JSONs to './scribe_data_json_export' ...

How the above would work for list is a question 🤔

Contribution

Happy to discuss and eventually help implement this! Options would basically come from list commands and command arguments :)

Metadata

Metadata

Assignees

Labels

featureNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions