[−][src]Module wrangler::installer
Self-installation of wrangler
This module contains one public function which will self-install the
currently running executable as wrangler
. Our goal is to install this in
a place that's already in PATH
, ideally in an idiomatic location. To that
end we place wrangler
next to the rustup
executable in PATH
.
This installer is run directly (probably by clicking on it) on Windows, meaning it will pop up a console (as we're a console app). Output goes to the console and users interact with it through the console. On Unix this is intended to be run from a shell script (docs/installer/init.sh) which is downloaded via curl/sh, and then the shell script downloads this executable and runs it.
This may get more complicated over time (self upates anyone?) but for now it's pretty simple! We're largely just moving over our currently running executable to a different path.
Functions
install |