diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2022-06-21 19:02:14 -1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 19:02:14 -1000 |
commit | 1484ba9548208274d689173695ffe63a7b569254 (patch) | |
tree | 82f478826d4088cbc7b577bf61c1912a04df59e9 | |
parent | 7b2190dbd043b961e224eabe729322684e6dd1c0 (diff) | |
parent | 0eaf72eed8c98f2c0a2bb4b6d1f6601d18b66bee (diff) |
Merge pull request #143 from kianmeng/fix-typos
Fix typos
-rw-r--r-- | litecli/packages/completion_engine.py | 2 | ||||
-rw-r--r-- | litecli/packages/parseutils.py | 2 | ||||
-rw-r--r-- | litecli/packages/special/iocommands.py | 2 | ||||
-rw-r--r-- | tasks.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/litecli/packages/completion_engine.py b/litecli/packages/completion_engine.py index 0e2a30f..31a32b7 100644 --- a/litecli/packages/completion_engine.py +++ b/litecli/packages/completion_engine.py @@ -210,7 +210,7 @@ def suggest_based_on_last_token(token, text_before_cursor, full_text, identifier # suggest columns that are present in more than one table return [{"type": "column", "tables": tables, "drop_unique": True}] elif p.token_first().value.lower() == "select": - # If the lparen is preceeded by a space chances are we're about to + # If the lparen is preceded by a space chances are we're about to # do a sub-select. if last_word(text_before_cursor, "all_punctuations").startswith("("): return [{"type": "keyword"}] diff --git a/litecli/packages/parseutils.py b/litecli/packages/parseutils.py index 3f5ca61..f5fdc1d 100644 --- a/litecli/packages/parseutils.py +++ b/litecli/packages/parseutils.py @@ -147,7 +147,7 @@ def extract_table_identifiers(token_stream): # extract_tables is inspired from examples in the sqlparse lib. def extract_tables(sql): - """Extract the table names from an SQL statment. + """Extract the table names from an SQL statement. Returns a list of (schema, table, alias) tuples diff --git a/litecli/packages/special/iocommands.py b/litecli/packages/special/iocommands.py index 43c3577..92ea444 100644 --- a/litecli/packages/special/iocommands.py +++ b/litecli/packages/special/iocommands.py @@ -286,7 +286,7 @@ def delete_favorite_query(arg, **_): return [(None, None, None, status)] -@special_command("system", "system [command]", "Execute a system shell commmand.") +@special_command("system", "system [command]", "Execute a system shell command.") def execute_system_command(arg, **_): """Execute a system shell command.""" usage = "Syntax: system [command].\n" @@ -34,7 +34,7 @@ class BaseCommand(Command, object): sys.exit(subprocess.call(cmd, shell=shell)) def call_in_sequence(self, cmds, shell=True): - """Run multiple commmands in a row, exiting if one fails.""" + """Run multiple commands in a row, exiting if one fails.""" for cmd in cmds: if subprocess.call(cmd, shell=shell) == 1: sys.exit(1) |