mirror of
https://github.com/YGGverse/flarumdown.git
synced 2026-03-31 16:55:29 +00:00
initial commit
This commit is contained in:
parent
7821fbb237
commit
8539bffeb9
7 changed files with 1280 additions and 0 deletions
19
src/config.rs
Normal file
19
src/config.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
use clap::Parser;
|
||||
use std::path::PathBuf;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(version, about, long_about = None)]
|
||||
pub struct Config {
|
||||
/// Path to database
|
||||
#[arg(short, long)]
|
||||
pub source: PathBuf,
|
||||
|
||||
/// Path to export markdown
|
||||
#[arg(short, long)]
|
||||
pub target: PathBuf,
|
||||
|
||||
/// Collect discussions with given tag slug only
|
||||
/// * keep empty to export all
|
||||
#[arg(short, long)]
|
||||
pub filter_tag: Vec<String>,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue