Move cli specific modules under cli folder

nectar will also have its own folder with a separate config.
This commit is contained in:
Franck Royer 2021-02-11 09:59:24 +11:00
parent 901c9e89c9
commit 7805a6d684
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
5 changed files with 8 additions and 5 deletions

View File

@ -19,9 +19,11 @@ use std::{path::PathBuf, sync::Arc};
use structopt::StructOpt; use structopt::StructOpt;
use swap::{ use swap::{
bitcoin, bitcoin,
command::{Arguments, Cancel, Command, Refund, Resume}, cli::{
config::{ command::{Arguments, Cancel, Command, Refund, Resume},
initial_setup, query_user_for_initial_testnet_config, read_config, ConfigNotInitialized, config::{
initial_setup, query_user_for_initial_testnet_config, read_config, ConfigNotInitialized,
},
}, },
database::Database, database::Database,
execution_params, execution_params,

2
swap/src/cli.rs Normal file
View File

@ -0,0 +1,2 @@
pub mod command;
pub mod config;

View File

@ -17,8 +17,7 @@
)] )]
pub mod bitcoin; pub mod bitcoin;
pub mod command; pub mod cli;
pub mod config;
pub mod database; pub mod database;
pub mod execution_params; pub mod execution_params;
pub mod fs; pub mod fs;