Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-133447: Add basic color tosqlite3 CLI#133461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
0a33388e680c359bf179cb4561338ef9217ca015a12c06076198399e2a8c729a220442e65d72466711a062a016452ee84c4ed58154c0b52cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -113,7 +113,8 @@ def main(*args): | ||
| Type ".help" for more information; type ".quit" or {eofkey} to quit. | ||
| """).strip() | ||
| theme = get_theme() | ||
| s = theme.syntax | ||
| sys.ps1 = f"{s.prompt}sqlite> {s.reset}" | ||
| sys.ps2 = f"{s.prompt} ... {s.reset}" | ||
| @@ -122,7 +123,7 @@ def main(*args): | ||
| try: | ||
| if args.sql: | ||
| # SQL statement provided on the command-line; execute it directly. | ||
| execute(con, args.sql, suppress_errors=False, theme=theme) | ||
StanFromIreland marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| else: | ||
| # No SQL provided; start the REPL. | ||
| console = SqliteInteractiveConsole(con, use_color=True) | ||
StanFromIreland marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
Uh oh!
There was an error while loading.Please reload this page.