iepsen / cmvm Goto Github PK
View Code? Open in Web Editor NEWCMake Version Manager
License: MIT License
CMake Version Manager
License: MIT License
Download the tar.gz
package and install it on the system. As the macOS platform evolves, it requires verifying the best package for the running operating system.
Some conditions:
macos-universal.tar.gz
package of the desired versionmacos10.10-universal.tar.gz
package of the desired version*darwin*
package of the desired versionThe use
command should set the desired version as current. Currently, cmvm
creates a symbolic link to that version so it persists until set to a new one, which could be reviewed if needed.
Possible solution: Create on platform level a set of definitions to match releases. This also simplifies the current implementation (downloading the version json file).
struct SupportedDefinition {
content_types: Vec<String>,
name_contains: Vec<String>,
}
fn macos_supported_definition() -> SupportedDefinition {
SupportedDefinition {
name_contains: vec![
"-macos-".to_string(),
"-macos10.10-".to_string(),
"-Darwin-".to_string(),
],
content_types: vec!["application/gzip".to_string()],
}
}
Use shellscript to install it on path. Reference: https://fnm.vercel.app/install
Remote versions are currently ordered by the release date. It would be good to have ordered by version name.
The list-remote
command should fetch versions from Github releases API and print it in a human-readable way, for example:
Available cmake versions:
3.20.0
3.20.1
3.20.2
3.20.3
3.20.4
3.20.5
3.20.6
3.21.0
3.21.1
3.21.2
3.21.3
3.21.4
The list
command should print all cmake versions installed by cmvm
in a human-readable way. Also important to make clear which is the current version in use. For example:
CMake list managed by cmvm:
3.16.4
3.16.9
3.18.3
* 3.19.7
3.20.2
Filter out releases that misses assets without application/json
as content_type
.
Reference:
https://rust-cli.github.io/book/tutorial/packaging.html#getting-your-app-into-package-repositories
It would be interesting to make the packages from the CI:
https://doc.rust-lang.org/cargo/guide/continuous-integration.html
https://github.com/marketplace/actions/build-and-upload-rust-binary-to-github-releases
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.