SDKRAN CLI is a command-line tool for managing SDKs, providing faster installation, version switching, and minimal resource usage. It’s designed to be an efficient, lightweight alternative to SDKMAN, working on macOS, Linux, and Windows.
sdkran_cli/
├── src/
│ └── main.rs # Main entry point for the program
├── Cargo.toml # Dependencies and project settings
└── README.md # Documentation
In the Cargo.toml
file, you'll have the following:
[package]
name = "sdkran_cli"
version = "0.1.0"
edition = "2021"
[dependencies]
clap = "4.0" # For handling command-line arguments
-
Clone the repository:
git clone https://github.com/your-username/sdkran_cli.git cd sdkran_cli
-
Build the project:
Install dependencies and build the project:
cargo build --release
-
Run the CLI:
Run the CLI using:
cargo run
To test the basic functionality, you can add a simple command like
install
(this is just an example):cargo run -- install java
-
Install SDK:
A simple command to install an SDK (e.g.,
java
):cargo run -- install java