From 8b154e88fb554f3be9a68d4cd4674f6ec17bd5c7 Mon Sep 17 00:00:00 2001 From: Artemy Date: Sat, 6 Aug 2022 19:20:42 +0300 Subject: [PATCH] doc: add installation from cargo --- Cargo.toml | 2 +- README.md | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index be7b9aa..027c8d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "onla" version = "0.1.0" edition = "2021" -author = ["artegoser"] +authors = ["artegoser"] license = "MIT" description = "A programming language running on json or yaml" repository = "https://github.com/artegoser/ONLang" diff --git a/README.md b/README.md index c3a9062..83c42b7 100644 --- a/README.md +++ b/README.md @@ -16,16 +16,19 @@ For writing simple scripts. [Documentation](doc/main.md) -## Installing +## Installation + +`cargo install onla` +or +Get binary from [releases](https://github.com/artegoser/ONLang/releases) and add the executable file to the PATH variable ## Using -1. Add the executable file to the path variable -2. `onla example/example.json5` +`onla examples/example.json5` or 1. Clone this repo -2. `cargo run --quiet --release -- example/example.json5` +2. `cargo run --quiet --release -- examples/example.json5` If you want to help create a pull request