Skip to content

Commit

Permalink
advertise undo and redo when there are changes to an env
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Aug 22, 2024
1 parent 8b2c0f3 commit 16d4ecf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2743,8 +2743,13 @@ function print_status(env::EnvCache, old_env::Union{Nothing,EnvCache}, registrie
println(io)
end

# figure out if we are at the end of status prints, given this is called twice for combined mode
last_status_report = mode != PKGMODE_COMBINED || mode == PKGMODE_COMBINED && manifest

if !no_changes && !all_packages_downloaded
printpkgstyle(io, :Info, "Packages marked with $not_installed_indicator are not downloaded, use `instantiate` to download", color=Base.info_color(), ignore_indent)
printpkgstyle(io, :Info, "Packages marked with $not_installed_indicator are not downloaded, use `instantiate` to download. Use `undo/redo` to revert changes.", color=Base.info_color(), ignore_indent)
elseif last_status_report && old_env !== nothing && !no_changes
printpkgstyle(io, :Info, "Use `undo/redo` to revert changes.", color=Base.info_color(), ignore_indent)
end
if !outdated && (mode != PKGMODE_COMBINED || (manifest == true))
tipend = manifest ? " -m" : ""
Expand Down

0 comments on commit 16d4ecf

Please sign in to comment.