mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-24 00:54:17 +02:00
Make it possible to override the OS
This commit is contained in:
parent
eac7308ba7
commit
1e69f4ac4e
1 changed files with 6 additions and 1 deletions
|
|
@ -130,8 +130,13 @@ fn main() {
|
|||
process::exit(0);
|
||||
}
|
||||
|
||||
// Specify target OS
|
||||
let os: OsType = match args.flag_os {
|
||||
Some(os) => os,
|
||||
None => get_os(),
|
||||
};
|
||||
|
||||
// Initialize cache
|
||||
let os: OsType = get_os();
|
||||
let cache = Cache::new(ARCHIVE_URL, os);
|
||||
|
||||
// Clear cache, pass through
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue