Void -> Nothing
This commit is contained in:
parent
75c7875899
commit
f070978334
@ -5,7 +5,7 @@
|
|||||||
force::Bool=false,
|
force::Bool=false,
|
||||||
ssh::Bool=false,
|
ssh::Bool=false,
|
||||||
backup_dir::AbstractString="",
|
backup_dir::AbstractString="",
|
||||||
) -> Void
|
) -> Nothing
|
||||||
|
|
||||||
Generate a package named `pkg_name` from `template`.
|
Generate a package named `pkg_name` from `template`.
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ end
|
|||||||
ssh::Bool=false,
|
ssh::Bool=false,
|
||||||
backup_dir::AbstractString="",
|
backup_dir::AbstractString="",
|
||||||
fast::Bool=false,
|
fast::Bool=false,
|
||||||
) -> Void
|
) -> Nothing
|
||||||
|
|
||||||
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
|
||||||
|
@ -12,7 +12,7 @@ const LICENSES = Dict(
|
|||||||
)
|
)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
available_licenses([io::IO]) -> Void
|
available_licenses([io::IO]) -> Nothing
|
||||||
|
|
||||||
Print the names of all available licenses.
|
Print the names of all available licenses.
|
||||||
"""
|
"""
|
||||||
@ -20,7 +20,7 @@ available_licenses(io::IO) = println(io, join(("$k: $v" for (k, v) in LICENSES),
|
|||||||
available_licenses() = available_licenses(STDOUT)
|
available_licenses() = available_licenses(STDOUT)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
show_license([io::IO], license::AbstractString) -> Void
|
show_license([io::IO], license::AbstractString) -> Nothing
|
||||||
|
|
||||||
Print the text of `license`. Errors if the license is not found.
|
Print the text of `license`. Errors if the license is not found.
|
||||||
"""
|
"""
|
||||||
|
@ -30,7 +30,7 @@ Generic plugins are plugins that add any number of patterns to the generated pac
|
|||||||
badges::Vector{Badge}
|
badges::Vector{Badge}
|
||||||
view::Dict{String, Any}
|
view::Dict{String, Any}
|
||||||
|
|
||||||
function MyPlugin(; config_file::Union{AbstractString, Void}="")
|
function MyPlugin(; config_file::Union{AbstractString, Nothing}="")
|
||||||
if config_file != nothing
|
if config_file != nothing
|
||||||
config_file = if isempty(config_file)
|
config_file = if isempty(config_file)
|
||||||
joinpath(DEFAULTS_DIR, "my-plugin.toml")
|
joinpath(DEFAULTS_DIR, "my-plugin.toml")
|
||||||
@ -250,7 +250,7 @@ end
|
|||||||
"""
|
"""
|
||||||
interactive(
|
interactive(
|
||||||
plugin_type::Type{<:Plugin};
|
plugin_type::Type{<:Plugin};
|
||||||
file::Union{AbstractString, Void}="",
|
file::Union{AbstractString, Nothing}="",
|
||||||
) -> Plugin
|
) -> Plugin
|
||||||
|
|
||||||
Interactively create a plugin of type `plugin_type`, where `file` is the plugin type's
|
Interactively create a plugin of type `plugin_type`, where `file` is the plugin type's
|
||||||
@ -259,7 +259,7 @@ default config template with a non-standard name (for `MyPlugin`, this is anythi
|
|||||||
"""
|
"""
|
||||||
function interactive(
|
function interactive(
|
||||||
plugin_type::Type{<:GenericPlugin};
|
plugin_type::Type{<:GenericPlugin};
|
||||||
file::Union{AbstractString, Void}="",
|
file::Union{AbstractString, Nothing}="",
|
||||||
)
|
)
|
||||||
plugin_name = String(split(string(plugin_type), ".")[end])
|
plugin_name = String(split(string(plugin_type), ".")[end])
|
||||||
# By default, we expect the default plugin file template for a plugin called
|
# By default, we expect the default plugin file template for a plugin called
|
||||||
|
@ -53,7 +53,7 @@ create a template, you can use [`interactive_template`](@ref) instead.
|
|||||||
function Template(;
|
function Template(;
|
||||||
user::AbstractString="",
|
user::AbstractString="",
|
||||||
host::AbstractString="https://github.com",
|
host::AbstractString="https://github.com",
|
||||||
license::Union{AbstractString, Void}="MIT",
|
license::Union{AbstractString, Nothing}="MIT",
|
||||||
authors::Union{AbstractString, Vector{<:AbstractString}}="",
|
authors::Union{AbstractString, Vector{<:AbstractString}}="",
|
||||||
years::Union{Integer, AbstractString}=Dates.year(Dates.today()),
|
years::Union{Integer, AbstractString}=Dates.year(Dates.today()),
|
||||||
dir::AbstractString=Pkg.dir(),
|
dir::AbstractString=Pkg.dir(),
|
||||||
|
Loading…
Reference in New Issue
Block a user