diff --git a/src/generate.jl b/src/generate.jl index 9f18483..80e13e3 100644 --- a/src/generate.jl +++ b/src/generate.jl @@ -5,7 +5,7 @@ force::Bool=false, ssh::Bool=false, backup_dir::AbstractString="", - ) -> Void + ) -> Nothing Generate a package named `pkg_name` from `template`. @@ -135,7 +135,7 @@ end ssh::Bool=false, backup_dir::AbstractString="", fast::Bool=false, - ) -> Void + ) -> Nothing 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 diff --git a/src/licenses.jl b/src/licenses.jl index 3e26478..e3bfbeb 100644 --- a/src/licenses.jl +++ b/src/licenses.jl @@ -12,7 +12,7 @@ const LICENSES = Dict( ) """ - available_licenses([io::IO]) -> Void + available_licenses([io::IO]) -> Nothing 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) """ - 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. """ diff --git a/src/plugin.jl b/src/plugin.jl index 87a74f3..40aeec6 100644 --- a/src/plugin.jl +++ b/src/plugin.jl @@ -30,7 +30,7 @@ Generic plugins are plugins that add any number of patterns to the generated pac badges::Vector{Badge} view::Dict{String, Any} - function MyPlugin(; config_file::Union{AbstractString, Void}="") + function MyPlugin(; config_file::Union{AbstractString, Nothing}="") if config_file != nothing config_file = if isempty(config_file) joinpath(DEFAULTS_DIR, "my-plugin.toml") @@ -250,7 +250,7 @@ end """ interactive( plugin_type::Type{<:Plugin}; - file::Union{AbstractString, Void}="", + file::Union{AbstractString, Nothing}="", ) -> Plugin 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( plugin_type::Type{<:GenericPlugin}; - file::Union{AbstractString, Void}="", + file::Union{AbstractString, Nothing}="", ) plugin_name = String(split(string(plugin_type), ".")[end]) # By default, we expect the default plugin file template for a plugin called diff --git a/src/template.jl b/src/template.jl index 7695061..3942435 100644 --- a/src/template.jl +++ b/src/template.jl @@ -53,7 +53,7 @@ create a template, you can use [`interactive_template`](@ref) instead. function Template(; user::AbstractString="", host::AbstractString="https://github.com", - license::Union{AbstractString, Void}="MIT", + license::Union{AbstractString, Nothing}="MIT", authors::Union{AbstractString, Vector{<:AbstractString}}="", years::Union{Integer, AbstractString}=Dates.year(Dates.today()), dir::AbstractString=Pkg.dir(),