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"
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"

View file

@ -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