Don't explicitly import Base.show
This commit is contained in:
parent
0ae017f715
commit
ce318d1198
@ -1,5 +1,3 @@
|
|||||||
import Base.show
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Generic plugins are plugins that add any number of patterns to the generated package's
|
Generic plugins are plugins that add any number of patterns to the generated package's
|
||||||
`.gitignore`, and have at most one associated file to generate.
|
`.gitignore`, and have at most one associated file to generate.
|
||||||
@ -69,7 +67,7 @@ config template file doesn't follow the generic naming convention, we added anot
|
|||||||
"""
|
"""
|
||||||
abstract type GenericPlugin <: Plugin end
|
abstract type GenericPlugin <: Plugin end
|
||||||
|
|
||||||
function show(io::IO, p::GenericPlugin)
|
function Base.show(io::IO, p::GenericPlugin)
|
||||||
spc = " "
|
spc = " "
|
||||||
println(io, "$(nameof(typeof(p))):")
|
println(io, "$(nameof(typeof(p))):")
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import Base.show
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Add a `Documenter` subtype to a template's plugins to add support for documentation
|
Add a `Documenter` subtype to a template's plugins to add support for documentation
|
||||||
generation via [Documenter.jl](https://github.com/JuliaDocs/Documenter.jl).
|
generation via [Documenter.jl](https://github.com/JuliaDocs/Documenter.jl).
|
||||||
@ -60,7 +58,7 @@ function gen_plugin(
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function show(io::IO, p::Documenter)
|
function Base.show(io::IO, p::Documenter)
|
||||||
spc = " "
|
spc = " "
|
||||||
println(io, "$(nameof(typeof(p))):")
|
println(io, "$(nameof(typeof(p))):")
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import Base.show
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
dev_dir() -> String
|
dev_dir() -> String
|
||||||
|
|
||||||
@ -120,7 +118,7 @@ create a template, you can use [`interactive_template`](@ref) instead.
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function show(io::IO, t::Template)
|
function Base.show(io::IO, t::Template)
|
||||||
maybe_none(s::AbstractString) = isempty(string(s)) ? "None" : string(s)
|
maybe_none(s::AbstractString) = isempty(string(s)) ? "None" : string(s)
|
||||||
spc = " "
|
spc = " "
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user