From 27d38eaf6a8f800ca83cd22023ff637f27c312f6 Mon Sep 17 00:00:00 2001 From: Adrian Salceanu Date: Thu, 8 Aug 2024 15:40:23 +0200 Subject: [PATCH] Allow all kwds in assets_route --- Project.toml | 2 +- src/Assets.jl | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 2fc995895..4c33b55db 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Genie" uuid = "c43c736e-a2d1-11e8-161f-af95117fbd1e" authors = ["Adrian Salceanu and the amazing Genie contributors ♥️"] -version = "5.30.3" +version = "5.30.4" [deps] ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63" diff --git a/src/Assets.jl b/src/Assets.jl index 5041413c5..1b909cb8e 100644 --- a/src/Assets.jl +++ b/src/Assets.jl @@ -154,9 +154,10 @@ function asset_route(file::String; kwargs...) :: String asset_route(; file, kwargs...) end function asset_route(ac::AssetsConfig, tp::Union{Symbol,String}; type::String = string(tp), path::String = "", - file::String = "", ext::String = ".$type", skip_ext::Bool = false, query::String = "") :: String - asset_route(package = ac.package, version = ac.version, type = type, path = path, file = file, - ext = ext, skip_ext = skip_ext, query = query) + file::String = "", ext::String = ".$type", skip_ext::Bool = false, query::String = "", + kwds...) :: String + asset_route(; package = ac.package, version = ac.version, type = type, path = path, file = file, + ext = ext, skip_ext = skip_ext, query = query, kwds...) end