Skip to content

Commit f3d0cf5

Browse files
committed
add update message functionality
1 parent 756d413 commit f3d0cf5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/DrWatson.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,21 @@ function __init__()
2323
end
2424
end
2525

26+
# Update messages
27+
display_update = true
28+
update_name = "update_v0.5.0"
29+
if display_update
30+
if !isfile(joinpath(@__DIR__, update_name))
31+
printstyled(stdout,
32+
"""
33+
\nUpdate message: DrWatson v0.5.0
34+
35+
Two minor breaking changes take place in this version, that
36+
improve the functionality of `default_prefix` of `savename`
37+
as well as `produce_or_load`.\n
38+
"""; color = :light_magenta)
39+
touch(joinpath(@__DIR__, update_name))
40+
end
41+
end
2642

2743
end

0 commit comments

Comments
 (0)