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",
|
"command": "clippy",
|
||||||
"args": [
|
"args": [
|
||||||
"--fix",
|
"--fix",
|
||||||
|
"--lib",
|
||||||
|
"--bin",
|
||||||
|
"shrupl",
|
||||||
"--allow-dirty",
|
"--allow-dirty",
|
||||||
"--allow-staged",
|
"--allow-staged",
|
||||||
"--",
|
"--",
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,3 @@
|
||||||
mod appstate;
|
|
||||||
mod cachefile;
|
|
||||||
mod cli;
|
|
||||||
mod file;
|
|
||||||
mod impl_ureq;
|
|
||||||
mod output;
|
|
||||||
mod sharry;
|
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
process,
|
process,
|
||||||
sync::{
|
sync::{
|
||||||
|
|
@ -18,10 +10,7 @@ use clap::Parser;
|
||||||
use console::{StyledObject, style};
|
use console::{StyledObject, style};
|
||||||
use log::{debug, info, trace};
|
use log::{debug, info, trace};
|
||||||
|
|
||||||
use appstate::AppState;
|
use shrupl::{AppState, Cli, ClientError, Log, Parameter, SHRUPL, output};
|
||||||
use cli::Cli;
|
|
||||||
use output::{Log, SHRUPL};
|
|
||||||
use sharry::{ClientError, Parameter};
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let check_ctrlc = {
|
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