Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4b99f2028d | |||
| e9e51d455b | |||
| 3252927df7 |
1240
Cargo.lock
generated
1240
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -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]
|
||||
|
||||
@@ -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
26
src/cmd/mod.rs
Normal 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,
|
||||
}
|
||||
986
src/main.rs
986
src/main.rs
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user