From ea1fac3e88f88163efbe7b708ed22ec30625bcf9 Mon Sep 17 00:00:00 2001 From: aminya Date: Sun, 16 Feb 2020 05:08:18 -0600 Subject: [PATCH] package_name naming convention --- src/bot.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bot.jl b/src/bot.jl index 47eb69703..341efd9cc 100644 --- a/src/bot.jl +++ b/src/bot.jl @@ -8,20 +8,20 @@ const UStrings = Union{AbstractString,Regex,AbstractChar} Config object that holds the options and configuration for the SnoopCompile bot. This object is fed to the `@snoopi_bot`. # Arguments: -- `packageName::String` +- `package_name::String` - `subst::Vector{Pair{UStrings, UStrings}}` : to replace a packages precompile setences with another's package like `["ImageTest" => "Images"]`. `UStrings` is every string like type that `replace()` has a method for. - `blacklist::Vector{UStrings}` : to remove some precompile sentences - `os`::Vector{String} or nothing : give the list of os that you want to generate precompile signatures for. Each element will call a `Sys.is\$eachos()` function. """ struct BotConfig - packageName::String + package_name::String subst::Vector{Pair{T1, T2}} where {T1<:UStrings, T2 <: UStrings} blacklist::Vector{T3} where {T3<:UStrings} os::Vector{String} end -function BotConfig(packageName::String; subst::Vector{Pair{T1, T2}} where {T1<:UStrings, T2 <: UStrings} = Vector{Pair{String, String}}(), blacklist::Vector{T3} where {T3<:UStrings}= String[], os::Union{Vector{String}, Nothing} = nothing) - return BotConfig(packageName, subst, blacklist, os) +function BotConfig(package_name::String; subst::Vector{Pair{T1, T2}} where {T1<:UStrings, T2 <: UStrings} = Vector{Pair{String, String}}(), blacklist::Vector{T3} where {T3<:UStrings}= String[], os::Union{Vector{String}, Nothing} = nothing) + return BotConfig(package_name, subst, blacklist, os) end include("bot/botutils.jl")