Skip to content

Commit

Permalink
Remove type piracy of copy
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox authored and abelsiqueira committed Aug 13, 2024
1 parent b29b69b commit c97f890
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Copier.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ end
Wrapper around [copier.run_copy](https://copier.readthedocs.io/en/stable/reference/main/#copier.main.run_copy).
This is an internal function, if BestieTemplate's main API is not sufficient, open an issue.
Note: this is not `Base.copy`, inside the Copier module we shadow that name.
"""
function Base.copy(src_path, dst_path, data::Dict = Dict(); kwargs...)
function copy(src_path, dst_path, data::Dict = Dict(); kwargs...)
copier = PythonCall.pyimport("copier")
copier.run_copy(src_path, dst_path, data; kwargs...)
end

function Base.copy(dst_path, data::Dict = Dict(); kwargs...)
function copy(dst_path, data::Dict = Dict(); kwargs...)
copy(joinpath(@__DIR__, ".."), dst_path, data; kwargs...)
end

Expand Down

0 comments on commit c97f890

Please sign in to comment.