Deprecations: readstring, Nullables, warn
This commit is contained in:
parent
adbbfd887d
commit
d932a29ded
@ -109,12 +109,12 @@ function generate(
|
||||
end
|
||||
mkpath(backup_dir)
|
||||
mv(temp_pkg_dir, joinpath(backup_dir, pkg_name))
|
||||
warn("$pkg_name couldn't be moved into $pkg_dir, left package in $backup_dir")
|
||||
@warn "$pkg_name couldn't be moved into $pkg_dir, left package in $backup_dir"
|
||||
end
|
||||
|
||||
@info "Finished"
|
||||
if multiple_branches
|
||||
warn("Remember to push all created branches to your remote: git push --all")
|
||||
@warn "Remember to push all created branches to your remote: git push --all"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -213,13 +213,11 @@ function gen_plugin(
|
||||
dir::AbstractString,
|
||||
pkg_name::AbstractString,
|
||||
)
|
||||
src = try
|
||||
plugin.src
|
||||
catch
|
||||
if plugin.src === nothing
|
||||
return String[]
|
||||
end
|
||||
text = substitute(
|
||||
readstring(src),
|
||||
read(plugin.src, String),
|
||||
template;
|
||||
view=merge(Dict("PKGNAME" => pkg_name), plugin.view),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user