Don't explicitly import Base.show

This commit is contained in:
Chris de Graaf 2018-09-19 16:23:11 -05:00
parent 0ae017f715
commit ce318d1198
3 changed files with 3 additions and 9 deletions

View File

@ -1,5 +1,3 @@
import Base.show
"""
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.
@ -69,7 +67,7 @@ config template file doesn't follow the generic naming convention, we added anot
"""
abstract type GenericPlugin <: Plugin end
function show(io::IO, p::GenericPlugin)
function Base.show(io::IO, p::GenericPlugin)
spc = " "
println(io, "$(nameof(typeof(p))):")

View File

@ -1,5 +1,3 @@
import Base.show
"""
Add a `Documenter` subtype to a template's plugins to add support for documentation
generation via [Documenter.jl](https://github.com/JuliaDocs/Documenter.jl).
@ -60,7 +58,7 @@ function gen_plugin(
end
end
function show(io::IO, p::Documenter)
function Base.show(io::IO, p::Documenter)
spc = " "
println(io, "$(nameof(typeof(p))):")

View File

@ -1,5 +1,3 @@
import Base.show
"""
dev_dir() -> String
@ -120,7 +118,7 @@ create a template, you can use [`interactive_template`](@ref) instead.
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)
spc = " "