Return the Template from generate_interactive
This commit is contained in:
parent
884fa90fb3
commit
9671bc6836
@ -63,14 +63,16 @@ end
|
|||||||
generate(t::Template, pkg_name::AbstractString) = generate(pkg_name, t)
|
generate(t::Template, pkg_name::AbstractString) = generate(pkg_name, t)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
generate_interactive(pkg::AbstractString; fast::Bool=false) -> Nothing
|
generate_interactive(pkg::AbstractString; fast::Bool=false) -> Template
|
||||||
|
|
||||||
Interactively create a template, and then generate a package with it. Arguments and
|
Interactively create a template, and then generate a package with it. Arguments and
|
||||||
keywords are used in the same way as in [`generate`](@ref) and
|
keywords are used in the same way as in [`generate`](@ref) and
|
||||||
[`interactive_template`](@ref).
|
[`interactive_template`](@ref).
|
||||||
"""
|
"""
|
||||||
function generate_interactive(pkg::AbstractString; fast::Bool=false)
|
function generate_interactive(pkg::AbstractString; fast::Bool=false)
|
||||||
generate(pkg, interactive_template(; fast=fast))
|
t = interactive_template(; fast=fast)
|
||||||
|
generate(pkg, t)
|
||||||
|
return t
|
||||||
end
|
end
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user