Compare commits
2 commits
9887d5196f
...
39175412ba
Author | SHA1 | Date | |
---|---|---|---|
|
39175412ba | ||
|
f0ea348ae7 |
2 changed files with 3 additions and 6 deletions
|
@ -4,7 +4,6 @@ use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
||||||
struct SiteInfo {
|
struct SiteInfo {
|
||||||
name: String,
|
|
||||||
aliases: Vec<String>,
|
aliases: Vec<String>,
|
||||||
/// Aliases for this subdomain - will have the same exact settings
|
/// Aliases for this subdomain - will have the same exact settings
|
||||||
/// The socket address (e.g. `192.168.1.8:8080`) or port number (if on `localhost`) of the service to reverse proxy
|
/// The socket address (e.g. `192.168.1.8:8080`) or port number (if on `localhost`) of the service to reverse proxy
|
||||||
|
@ -38,7 +37,6 @@ pub(crate) fn example_config() -> String {
|
||||||
subdomains.insert(
|
subdomains.insert(
|
||||||
"qbittorrent".to_string(),
|
"qbittorrent".to_string(),
|
||||||
SiteInfo {
|
SiteInfo {
|
||||||
name: "Qbittorrent".to_string(),
|
|
||||||
aliases: vec!["qb".to_string()],
|
aliases: vec!["qb".to_string()],
|
||||||
address: "6011".to_string(),
|
address: "6011".to_string(),
|
||||||
auth: None,
|
auth: None,
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use cli::Commands;
|
use std::{path::PathBuf, process::exit};
|
||||||
use std::{collections::HashMap, path::PathBuf, process::exit};
|
|
||||||
mod build;
|
mod build;
|
||||||
mod cli;
|
mod cli;
|
||||||
mod data;
|
mod data;
|
||||||
|
@ -10,12 +9,12 @@ fn main() {
|
||||||
|
|
||||||
let args = cli::Cli::parse();
|
let args = cli::Cli::parse();
|
||||||
|
|
||||||
let config = args.config;
|
let config_path: PathBuf = args.config;
|
||||||
|
|
||||||
if args.print_example_config {
|
if args.print_example_config {
|
||||||
println!("{}", data::example_config());
|
println!("{}", data::example_config());
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("Config: {}", config.to_str().unwrap())
|
println!("Config path: {}", config_path.to_str().unwrap())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue