File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " multisql-cli"
3- version = " 0.0.3 "
3+ version = " 0.1.0 "
44authors = [" Kyran Gostelow <kyran@gostelow.me>" ]
55edition = " 2021"
66description = " MultiSQL CLI"
@@ -10,9 +10,9 @@ repository = "https://github.com/KyGost/multisql-cli"
1010[dependencies ]
1111dialoguer = " ^0"
1212indicatif = " ^0"
13- multisql = " 0.1.2 "
13+ multisql = " 0.1.3 "
1414lazy_static = " ^1"
1515console = " ^0"
1616cli-table = " ^0"
17- serde_json = " ^1 "
17+ serde_yaml = " 0.8.23 "
1818dirs = " ^4"
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ lazy_static! {
1818
1919fn 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
You can’t perform that action at this time.
0 commit comments