generated from OBJNULL/Dockerized-Rust
Compare commits
No commits in common. "d29345292901494ded1ff117a2c93cf711b578a2" and "2555c31e925490c65cfc548e505cd2f3d0ca8415" have entirely different histories.
d293452929
...
2555c31e92
2 changed files with 5 additions and 50 deletions
|
@ -1,22 +1,23 @@
|
|||
// Libraries
|
||||
mod action;
|
||||
mod args;
|
||||
mod packager;
|
||||
mod parser;
|
||||
mod printer;
|
||||
mod reader;
|
||||
mod writer;
|
||||
|
||||
use args::Arguments;
|
||||
use packager::Packager;
|
||||
use parser::Parser;
|
||||
use reader::Reader;
|
||||
use writer::Writer;
|
||||
|
||||
use std::io::Result;
|
||||
|
||||
// Functions
|
||||
fn convert(args: &Arguments) -> Result<()> {
|
||||
// Entry-Point
|
||||
fn main() -> Result<()> {
|
||||
// Reading the Arguments
|
||||
let args = Arguments::new();
|
||||
|
||||
// Display Status
|
||||
printer::print_generic("📃", "Extracting Text");
|
||||
|
||||
|
@ -42,27 +43,6 @@ fn convert(args: &Arguments) -> Result<()> {
|
|||
printer::print_generic("🏁", "Successful Converting Job");
|
||||
printer::print_generic("😎", "Thank you for using Statement Converter!");
|
||||
|
||||
// Ok!
|
||||
Ok(())
|
||||
}
|
||||
fn package(args: &Arguments) -> Result<()> {
|
||||
//
|
||||
|
||||
// Ok!!
|
||||
Ok(())
|
||||
}
|
||||
|
||||
// Entry-Point
|
||||
fn main() -> Result<()> {
|
||||
// Reading the Arguments
|
||||
let args = Arguments::new();
|
||||
|
||||
// What mode are we in?
|
||||
match args.mode {
|
||||
args::ArgModes::Convert => convert(&args)?,
|
||||
args::ArgModes::Package => package(&args)?,
|
||||
}
|
||||
|
||||
// It's ok!
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
// Libraries
|
||||
use std::io::Result;
|
||||
|
||||
// Structures
|
||||
pub struct Packager {
|
||||
directory: String,
|
||||
file_out: String,
|
||||
}
|
||||
|
||||
// Implementations
|
||||
impl Packager {
|
||||
// Constructors
|
||||
pub fn new(directory: String, file_out: String) -> Self {
|
||||
Self {
|
||||
directory,
|
||||
file_out,
|
||||
}
|
||||
}
|
||||
|
||||
// Functions
|
||||
pub fn start(&self) -> Result<()> {
|
||||
// Ok!!
|
||||
Ok(())
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue