comparison update_manifest.jl @ 1984:608a24a7b13b

Make the output of update_manifest.jl nicer
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 26 Feb 2025 23:12:17 +0100
parents 61422abd17a4
children
comparison
equal deleted inserted replaced
1959:b7b557f9ac5a 1984:608a24a7b13b
1 using Pkg 1 using Pkg
2
3 function update_and_log(root, d)
4 printstyled("Updating '$d'"; color=:cyan, bold=true)
5 println()
6 dp = joinpath(root, d)
7
8 update_directory(dp)
9 println()
10 end
2 11
3 function update_directory(d) 12 function update_directory(d)
4 Pkg.activate(d) 13 Pkg.activate(d)
5 Pkg.update() 14 Pkg.update()
6 println()
7 end 15 end
8 16
9 update_directory(".") 17 root = @__DIR__
10 update_directory("benchmark") 18 update_and_log(root, ".")
11 update_directory("docs") 19 update_and_log(root, "benchmark")
12 update_directory("test") 20 update_and_log(root, "docs")
21 update_and_log(root, "test")
22