Jargo is a Rust-based tool that functions similarly to Cargo but is designed for Java projects. It simplifies the process of managing Java projects by providing commands to create, compile, and run your Java code efficiently.
jargo.mp4
To install Jargo, follow these steps:
- Clone the repository:
git clone https://github.com/Marlon-Sbardelatti/jargo.git
cd jargo
- Build the project using Cargo (Rust's package manager):
cargo build --release
- Copy the Jargo executable to /usr/local/bin:
sudo cp target/release/jargo /usr/local/bin
To use Jargo, navigate to your desired directory and run one of the following commands:
jargo new myproject
# or
jargo n myproject
jargo run
# or
jargo r
jargo jrun
# or
jargo j
jargo create MyClass
# or
jargo c MyClass
jargo help
# or
jargo h
- new or n: Creates a new Java project.
- run or r: Compiles and runs the project.
- jrun or j: Runs the latest compiled version of the project.
- help or h: Lists all commands.
- create or c: Creates a new Java class in the src directory.
When you create a new project with Jargo, the following structure is set up:
myproject/
├── src/
│ └── Main.java
└── out/
- src: Contains your Java source files.
- out: The destination for your compiled classes.
As of now, you can only place files inside the src directory. You can run or jrun commands from any directory within your project.
We welcome contributions! Follow these steps to contribute:
- Fork the repository.
- Create a new branch (git checkout -b feature/awesome-feature).
- Commit your changes (git commit -m 'Add some awesome feature').
- Push to the branch (git push origin feature/awesome-feature).
- Open a pull request.
This project is licensed under the MIT License.
Feel free to reach out with any questions or feedback.
- Email: hetzwga@gmail.com
- GitHub: Marlon-Sbardelatti