adjust crate structure
This commit is contained in:
parent
78fb04403c
commit
d1d7b55585
3 changed files with 16 additions and 12 deletions
3
.vscode/tasks.json
vendored
3
.vscode/tasks.json
vendored
|
|
@ -32,6 +32,9 @@
|
|||
"command": "clippy",
|
||||
"args": [
|
||||
"--fix",
|
||||
"--lib",
|
||||
"--bin",
|
||||
"shrupl",
|
||||
"--allow-dirty",
|
||||
"--allow-staged",
|
||||
"--",
|
||||
|
|
|
|||
|
|
@ -1,11 +1,3 @@
|
|||
mod appstate;
|
||||
mod cachefile;
|
||||
mod cli;
|
||||
mod file;
|
||||
mod impl_ureq;
|
||||
mod output;
|
||||
mod sharry;
|
||||
|
||||
use std::{
|
||||
process,
|
||||
sync::{
|
||||
|
|
@ -18,10 +10,7 @@ use clap::Parser;
|
|||
use console::{StyledObject, style};
|
||||
use log::{debug, info, trace};
|
||||
|
||||
use appstate::AppState;
|
||||
use cli::Cli;
|
||||
use output::{Log, SHRUPL};
|
||||
use sharry::{ClientError, Parameter};
|
||||
use shrupl::{AppState, Cli, ClientError, Log, Parameter, SHRUPL, output};
|
||||
|
||||
fn main() {
|
||||
let check_ctrlc = {
|
||||
12
src/lib.rs
Normal file
12
src/lib.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
mod appstate;
|
||||
mod cachefile;
|
||||
mod cli;
|
||||
mod file;
|
||||
mod impl_ureq;
|
||||
pub mod output;
|
||||
mod sharry;
|
||||
|
||||
pub use appstate::AppState;
|
||||
pub use cli::Cli;
|
||||
pub use output::{Log, SHRUPL};
|
||||
pub use sharry::{ClientError, Parameter};
|
||||
Loading…
Reference in a new issue