Struct ibdl_core::cli::Cli

source ·
pub struct Cli {
Show 15 fields pub tags: Vec<String>, pub imageboard: ImageBoardArg, pub output: Option<PathBuf>, pub simultaneous_downloads: u8, pub auth: bool, pub safe_mode: bool, pub save_file_as_id: bool, pub limit: Option<u16>, pub disable_blacklist: bool, pub cbz: bool, pub start_page: Option<u16>, pub update: bool, pub rating: Vec<RatingArg>, pub ignore_unknown: bool, pub annotate: bool,
}

Fields

tags: Vec<String>

Tags to search

imageboard: ImageBoardArg

Specify which website to download from

output: Option<PathBuf>

Where to save downloaded files

simultaneous_downloads: u8

Number of simultaneous downloads

[max: 20]

auth: bool

Authenticate to the imageboard website.

This flag only needs to be set a single time.

Once authenticated, it’s possible to use your blacklist to exclude posts with unwanted tags

safe_mode: bool

Download images from the safe version of the selected Imageboard.

Useful if you only want to download posts with “safe” rating.

save_file_as_id: bool

Save files with their ID as filename instead of it’s MD5

If the output dir has the same file downloaded with the MD5 name, it will be renamed to the post’s ID

limit: Option<u16>

Set a max number of posts to download.

[max: 65535]

disable_blacklist: bool

Disable blacklist filtering

cbz: bool

Save posts inside a cbz file.

Will always overwrite the destination file.

start_page: Option<u16>

Select from which page to start scanning posts

[max: 65535]

update: bool

Download only the latest images for tag selection.

Will not re-download already present or deleted images from destination directory

rating: Vec<RatingArg>

Download posts with the selected rating. Can be used multiple times to download posts with other ratings

ignore_unknown: bool

Do not download posts with an unknown rating

annotate: bool

Write tags in a txt file next to the downloaded image (for Stable Diffusion training)

Trait Implementations

Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Deprecated, replaced with CommandFactory::command
Deprecated, replaced with CommandFactory::command_for_update
Build a Command that can instantiate Self. Read more
Build a Command that can update self. Read more
Formats the value using the given formatter. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Parse from std::env::args_os(), exit on error
Parse from std::env::args_os(), return Err on error.
Parse from iterator, exit on error
Parse from iterator, return Err on error.
Update from iterator, exit on error
Update from iterator, return Err on error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more