3 Commits

Author SHA1 Message Date
4b99f2028d wip 2024-12-26 15:46:56 -08:00
e9e51d455b use auth bypass 2024-12-26 15:28:46 -08:00
3252927df7 upload scripts 2024-12-26 15:28:46 -08:00
5 changed files with 590 additions and 1675 deletions

1240
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
[package]
name = "rreview"
version = "1.2.6"
version = "1.0.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -8,10 +8,8 @@ edition = "2021"
[dependencies]
clap = { version = "4.4.2", features = ["derive"] }
futures = "0.3.31"
rand = "0.9.1"
serde_json = "1.0.142"
siphasher = "1.0.1"
submissions-api = { version = "0.10.0", registry = "strafesnet" }
submissions-api = { version = "0.3.0", features = ["external"], default-features = false, registry = "strafesnet" }
tokio = { version = "1.42.0", features = ["fs", "macros", "rt-multi-thread"] }
[profile.release]

View File

@@ -1,7 +1,2 @@
# Remote Script Review Tool
# map-tool
## How to build and run
1. Have rust and git installed
2. `git clone https://git.itzana.me/StrafesNET/remote-script-review`
3. `cd remote-script-review`
4. `cargo run --release`

26
src/cmd/mod.rs Normal file
View File

@@ -0,0 +1,26 @@
use clap::{Args,Parser,Subcommand};
#[derive(Parser)]
#[command(author,version,about,long_about=None)]
#[command(propagate_version=true)]
pub struct Cli{
#[command(subcommand)]
command:Commands,
}
#[derive(Subcommand)]
pub enum Commands{
Review(ReviewCommand),
UploadScripts(UploadScriptsCommand),
}
#[derive(Args)]
struct ReviewCommand{
#[arg(long)]
cookie:String,
}
#[derive(Args)]
struct UploadScriptsCommand{
#[arg(long)]
session_id:PathBuf,
}

File diff suppressed because it is too large Load Diff