mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
Merge 'Add abbreviated alias for .quit and .exit' from Krishna Vishal
Accidentally found that you can quit SQLite CLI just by typing `.q`, `.qu` and `.qui` instead of full `.quit`. IMO this will be an improvement to the DX. I've also found bunch of other dot commands that work with abbreviated aliases in SQLite. If this PR is okay then I will also add them here. Closes #1720
This commit is contained in:
@@ -27,10 +27,10 @@ pub struct CommandParser {
|
||||
#[command(disable_help_flag(false), disable_version_flag(true))]
|
||||
pub enum Command {
|
||||
/// Exit this program with return-code CODE
|
||||
#[command(display_name = ".exit")]
|
||||
#[command(display_name = ".exit", alias = "ex", alias = "exi")]
|
||||
Exit(ExitArgs),
|
||||
/// Quit the shell
|
||||
#[command(display_name = ".quit")]
|
||||
#[command(display_name = ".quit", alias = "q", alias = "qu", alias = "qui")]
|
||||
Quit,
|
||||
/// Open a database file
|
||||
#[command(display_name = ".open")]
|
||||
|
||||
Reference in New Issue
Block a user