diff --git a/docs/source/scribe_data/cli.rst b/docs/source/scribe_data/cli.rst index 853267957..c99eaed29 100644 --- a/docs/source/scribe_data/cli.rst +++ b/docs/source/scribe_data/cli.rst @@ -56,13 +56,12 @@ Example output: $ scribe-data list Language ISO QID - ----------------------- + ========================== English en Q1860 ... - ----------------------- Available data types: All languages - ----------------------------------- + =================================== adjectives adverbs emoji-keywords @@ -72,7 +71,7 @@ Example output: prepositions proper-nouns verbs - ----------------------------------- + @@ -81,10 +80,9 @@ Example output: $scribe-data list --language Language ISO QID - ----------------------- + ========================== English en Q1860 ... - ----------------------- .. code-block:: text @@ -92,7 +90,7 @@ Example output: $scribe-data list -dt Available data types: All languages - ----------------------------------- + =================================== adjectives adverbs emoji-keywords @@ -102,7 +100,6 @@ Example output: prepositions proper-nouns verbs - ----------------------------------- .. code-block:: text @@ -110,13 +107,12 @@ Example output: $scribe-data list -a Language ISO QID - ----------------------- + ========================== English en Q1860 ... - ----------------------- Available data types: All languages - ----------------------------------- + =================================== adjectives adverbs emoji-keywords @@ -126,7 +122,6 @@ Example output: prepositions proper-nouns verbs - ----------------------------------- Get Command ~~~~~~~~~~~ diff --git a/src/scribe_data/cli/list.py b/src/scribe_data/cli/list.py index d128e8e69..c85ab2512 100644 --- a/src/scribe_data/cli/list.py +++ b/src/scribe_data/cli/list.py @@ -54,14 +54,13 @@ def list_languages() -> None: print( f"{'Language':<{language_col_width}} {'ISO':<{iso_col_width}} {'QID':<{qid_col_width}}" ) - print("-" * table_line_length) + print("=" * table_line_length) for lang in languages: print( f"{lang.capitalize():<{language_col_width}} {get_language_iso(lang):<{iso_col_width}} {get_language_qid(lang):<{qid_col_width}}" ) - print("-" * table_line_length) print() @@ -121,13 +120,12 @@ def list_data_types(language: str = None) -> None: print() print(table_header) - print("-" * table_line_length) + print("=" * table_line_length) data_types = sorted(data_types) for dt in data_types: print(dt.replace("_", "-")) - print("-" * table_line_length) print() @@ -163,7 +161,7 @@ def list_languages_for_data_type(data_type: str) -> None: print( f"{'Language':<{language_col_width}} {'ISO':<{iso_col_width}} {'QID':<{qid_col_width}}" ) - print("-" * table_line_length) + print("=" * table_line_length) # Iterate through the list of languages and format each row. for lang in all_languages: @@ -171,7 +169,6 @@ def list_languages_for_data_type(data_type: str) -> None: f"{lang['name'].capitalize():<{language_col_width}} {lang['iso']:<{iso_col_width}} {lang['qid']:<{qid_col_width}}" ) - print("-" * table_line_length) print()