Giter Club home page Giter Club logo

cmvm's People

Contributors

dependabot[bot] avatar iepsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cmvm's Issues

Implement install command

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:

  • Running on macOS 10.13 or later it should fetch the macos-universal.tar.gz package of the desired version
  • Running on macOS 10.10 or later it should fetch the macos10.10-universal.tar.gz package of the desired version
  • Running on older operating system it should fetch the *darwin* package of the desired version

Implement use command

The 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.

Rely on name and content_type to filter releases

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()],
    }
}

Order list-remote versions

Remote versions are currently ordered by the release date. It would be good to have ordered by version name.

Implement list-remote command

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

Implement list command

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.