All of the dfxvm commands need the Locations object. self update needs it a little higher in the call stack, in order to delete a binary.
This PR makes it so there is only one place that calls Locations::new(), and it's higher in the call stack. This also means there are fewer places that can return NoHomeDirectory as an error.
Description
All of the dfxvm commands need the
Locations
object.self update
needs it a little higher in the call stack, in order to delete a binary.This PR makes it so there is only one place that calls
Locations::new()
, and it's higher in the call stack. This also means there are fewer places that can returnNoHomeDirectory
as an error.How Has This Been Tested?
Covered by CI