Skip to content

Commit b635a2d

Browse files
committed
0.1.0
1 parent 6f7bde6 commit b635a2d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "multisql-cli"
3-
version = "0.0.3"
3+
version = "0.1.0"
44
authors = ["Kyran Gostelow <[email protected]>"]
55
edition = "2021"
66
description = "MultiSQL CLI"
@@ -10,9 +10,9 @@ repository = "https://github.com/KyGost/multisql-cli"
1010
[dependencies]
1111
dialoguer = "^0"
1212
indicatif = "^0"
13-
multisql = "0.1.2"
13+
multisql = "0.1.3"
1414
lazy_static = "^1"
1515
console = "^0"
1616
cli-table = "^0"
17-
serde_json = "^1"
17+
serde_yaml = "0.8.23"
1818
dirs = "^4"

src/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ lazy_static! {
1818

1919
fn main() {
2020
let mut connection_file_path = dirs::home_dir().unwrap();
21-
connection_file_path.push(".multisql-cli.json");
21+
connection_file_path.push(".multisql-cli.yaml");
2222

2323
let mut connection_file = OpenOptions::new()
2424
.read(true)
@@ -34,7 +34,7 @@ fn main() {
3434
connection_json = String::from("[]")
3535
};
3636

37-
let connections: Vec<(String, Connection)> = serde_json::from_str(&connection_json).unwrap();
37+
let connections: Vec<(String, Connection)> = serde_yaml::from_str(&connection_json).unwrap();
3838
let databases = connections
3939
.into_iter()
4040
.map(|(name, connection)| (name, connection.try_into().unwrap()))
@@ -44,7 +44,7 @@ fn main() {
4444

4545
prompt(&mut glue);
4646

47-
let connection_json = serde_json::to_string(&glue.into_connections()).unwrap();
47+
let connection_json = serde_yaml::to_string(&glue.into_connections()).unwrap();
4848
connection_file.set_len(0).unwrap();
4949
connection_file.seek(SeekFrom::Start(0)).unwrap();
5050
connection_file

0 commit comments

Comments
 (0)