refac(cli): move opts to separate file
This commit is contained in:
parent
a9b3351d82
commit
2811b8b293
2 changed files with 8 additions and 6 deletions
|
@ -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
6
migra-cli/src/opts.rs
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
pub use structopt::StructOpt;
|
||||||
|
|
||||||
|
#[derive(Debug, StructOpt)]
|
||||||
|
pub(crate) enum AppOpt {
|
||||||
|
Init,
|
||||||
|
}
|
Reference in a new issue