Archived
1
0
Fork 0

refac(cli): move opts to separate file

This commit is contained in:
Dmitriy Pleshevskiy 2021-01-31 02:54:23 +03:00
parent a9b3351d82
commit 2811b8b293
2 changed files with 8 additions and 6 deletions

View file

@ -1,12 +1,8 @@
#![deny(clippy::all)] #![deny(clippy::all)]
use structopt::StructOpt; mod opts;
#[derive(Debug, StructOpt)]
enum AppOpt {
Init,
}
use opts::{AppOpt, StructOpt};
fn main() { fn main() {
let opt = AppOpt::from_args(); let opt = AppOpt::from_args();

6
migra-cli/src/opts.rs Normal file
View file

@ -0,0 +1,6 @@
pub use structopt::StructOpt;
#[derive(Debug, StructOpt)]
pub(crate) enum AppOpt {
Init,
}