doc: add installation from cargo

This commit is contained in:
Artemy 2022-08-06 19:20:42 +03:00
parent 93bdc94c32
commit 8b154e88fb
2 changed files with 8 additions and 5 deletions

View file

@ -2,7 +2,7 @@
name = "onla" name = "onla"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
author = ["artegoser"] authors = ["artegoser"]
license = "MIT" license = "MIT"
description = "A programming language running on json or yaml" description = "A programming language running on json or yaml"
repository = "https://github.com/artegoser/ONLang" repository = "https://github.com/artegoser/ONLang"

View file

@ -16,16 +16,19 @@ For writing simple scripts.
[Documentation](doc/main.md) [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 ## Using
1. Add the executable file to the path variable `onla examples/example.json5`
2. `onla example/example.json5`
or or
1. Clone this repo 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 If you want to help create a pull request