diff --git a/.gitignore b/.gitignore index a255e18..fd99892 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,6 @@ node_modules # ignore build & dist folders build -dist \ No newline at end of file +dist + +target \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..9886a9c --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "simple_media_upscale_lite_cli" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..ee21fb9 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "simple_media_upscale_lite_cli" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[lib] +name = "lib" +path = "src/lib.rs" + +[dependencies] diff --git a/README.md b/README.md index fb99c5e..ea7cc1f 100755 --- a/README.md +++ b/README.md @@ -24,6 +24,9 @@ smuL (pronounced like "small") is an Electron App with Python CLI to upscale images and videos using multiple different upscaling engines. +# Ongoing change: New CLI +smuL's CLI is currently getting a complete overhaul and is being rewritten in Rust. Don't expect any more updates to the Python CLI. + # Functionality This app allows you to upscale a single file or (in the future) a full on folder with one of many different engines that can be added as plugins. - Choose an input & output file from a GUI filemanager. diff --git a/bin/__pycache__/handler.cpython-311.pyc b/bin/__pycache__/handler.cpython-311.pyc index 62915c6..5c8fd31 100644 Binary files a/bin/__pycache__/handler.cpython-311.pyc and b/bin/__pycache__/handler.cpython-311.pyc differ diff --git a/src/handler/mod.rs b/src/handler/mod.rs new file mode 100644 index 0000000..d02c0ee --- /dev/null +++ b/src/handler/mod.rs @@ -0,0 +1,3 @@ +pub fn test2 () { + println!("HELLO WORLD!!!") +} \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..ff4cc16 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,7 @@ +mod handler; +use crate::handler::test2; + +pub fn test() { + println!("Test"); + test2(); +} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..b639087 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,22 @@ +use std::env; +use lib; + +fn main() { + println!(r" + ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ + ██ ▄▄▄ ██▄██ ▄▀▄ █▀▄▄▀█ ██ ▄▄██ ▄▀▄ █ ▄▄█ ▄▀██▄██ ▄▄▀██ ██ █▀▄▄▀█ ▄▄█▀▄▀█ ▄▄▀█ ██ ▄▄█ ▄▄▀██ █████▄██▄ ▄█ ▄▄ + ██▄▄▄▀▀██ ▄█ █▄█ █ ▀▀ █ ██ ▄▄██ █ █ █ ▄▄█ █ ██ ▄█ ▀▀ ██ ██ █ ▀▀ █▄▄▀█ █▀█ ▀▀ █ ██ ▄▄█ ▀▀▄██ █████ ▄██ ██ ▄▄ + ██ ▀▀▀ █▄▄▄█▄███▄█ ████▄▄█▄▄▄██ ███ █▄▄▄█▄▄██▄▄▄█▄██▄██▄▀▀▄█ ████▄▄▄██▄██▄██▄█▄▄█▄▄▄█▄█▄▄██ ▀▀ █▄▄▄██▄██▄▄▄ + ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ + + ==> You are running CLI Version 2.0.0-alpha1 + "); + + // Parse cli arguments + let args: Vec = env::args().collect(); + let length = args.len(); + println!("{length}"); + let query = &args[ 1 ]; + println!("{query}"); + lib::test(); +}