mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-19 09:34:18 +01:00
Rename .copy -> .clone
This commit is contained in:
@@ -713,7 +713,7 @@ impl Limbo {
|
|||||||
HeadersMode::Off => false,
|
HeadersMode::Off => false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Command::Copy(args) => {
|
Command::Clone(args) => {
|
||||||
if let Err(e) = self.conn.copy_db(&args.output_file) {
|
if let Err(e) = self.conn.copy_db(&args.output_file) {
|
||||||
let _ = self.writeln(e.to_string());
|
let _ = self.writeln(e.to_string());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ pub struct HeadersArgs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Args)]
|
#[derive(Debug, Clone, Args)]
|
||||||
pub struct CopyArgs {
|
pub struct CloneArgs {
|
||||||
pub output_file: String,
|
pub output_file: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ use clap::Parser;
|
|||||||
use import::ImportArgs;
|
use import::ImportArgs;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
commands::args::CopyArgs,
|
commands::args::CloneArgs,
|
||||||
input::{AFTER_HELP_MSG, BEFORE_HELP_MSG},
|
input::{AFTER_HELP_MSG, BEFORE_HELP_MSG},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -89,8 +89,8 @@ pub enum Command {
|
|||||||
/// Toggle column headers on/off in list mode
|
/// Toggle column headers on/off in list mode
|
||||||
#[command(name = "headers", display_name = ".headers")]
|
#[command(name = "headers", display_name = ".headers")]
|
||||||
Headers(HeadersArgs),
|
Headers(HeadersArgs),
|
||||||
#[command(name = "copy", display_name = ".copy")]
|
#[command(name = "clone", display_name = ".clone")]
|
||||||
Copy(CopyArgs),
|
Clone(CloneArgs),
|
||||||
}
|
}
|
||||||
|
|
||||||
const _HELP_TEMPLATE: &str = "{before-help}{name}
|
const _HELP_TEMPLATE: &str = "{before-help}{name}
|
||||||
|
|||||||
@@ -239,8 +239,8 @@ pub const AFTER_HELP_MSG: &str = r#"Usage Examples:
|
|||||||
17. To turn off column headers in list mode:
|
17. To turn off column headers in list mode:
|
||||||
.headers off
|
.headers off
|
||||||
|
|
||||||
18. To copy the open database to another file:
|
18. To clone the open database to another file:
|
||||||
.copy output_file.db
|
.clone output_file.db
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
- All SQL commands must end with a semicolon (;).
|
- All SQL commands must end with a semicolon (;).
|
||||||
|
|||||||
Reference in New Issue
Block a user