Documentation ¶ Index ¶ func Upgrade(ctx context.Context, opts Options) error type Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Upgrade ¶ func Upgrade(ctx context.Context, opts Options) error Upgrade downloads the latest release from github and replaces devsy if a new version is found. If DryRun is true, it only shows what would be downloaded without actually upgrading. Types ¶ type Options ¶ added in v1.3.1 type Options struct { Version string DryRun bool IncludePrerelease bool } Source Files ¶ View all Source files selfupdate.gosource.go Click to show internal directories. Click to hide internal directories.