upversion
upversion provides you to notify your clients when new version released and show the latest download link.
==> 🙆♂️ ) |
How it works
upversion running as a background process which not affect your tool performance.
- you can choose when present the newer version
- you can skip message notification if your proccess finished before
upversion
Usage
Add this to Cargo.toml:
[]
= { = "0.1" }
Vendor
- GitHub releases
- Custom RestAPI
Github Example:
use Result;
use GitHubVendor;
use CheckVersion;
Custom API:
If you manage your program version internally, you allow to serve the new version with your custom logic via rest API, and upversion will query your endpoint.
use Result;
use Api;
use CheckVersion;
More example
You can find more example here, or run via cargo cargo run --example
Customize Template
Customize alert message with your owned template
const CUSTOM_TEMPLATE: &str = r#"==> [CUSTOM_TEMPLATE]:: 🙆♂️ Newer {{ app_name }} version available: {{ new_version }} (currently running: {{ current_version }}) {% if download_link %}| Link: {{ download_link }} {% endif %}"#;
...
version_context.printstd_with_template;
Thanks
To all Contributors - you make this happen, thanks!
Copyright
Copyright (c) 2022 @kaplanelad. See LICENSE for further details.