Cut the v0.1.5 release.

This commit is contained in:
Jeremy Wall 2018-07-04 12:48:33 -05:00
parent 921643972b
commit 5e6da71ff2
3 changed files with 23 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ucg" name = "ucg"
version = "0.1.4" version = "0.1.5"
authors = ["Jeremy Wall <jeremy@marzhillstudios.com>"] authors = ["Jeremy Wall <jeremy@marzhillstudios.com>"]
description = "A configuration generation grammar." description = "A configuration generation grammar."
repository = "https://github.com/zaphar/ucg" repository = "https://github.com/zaphar/ucg"

View File

@ -42,6 +42,27 @@ SUBCOMMANDS:
validate Check a specific ucg file for errors. validate Check a specific ucg file for errors.
``` ```
## compiling a file
```sh
Compile a specific ucg file.
USAGE:
ucg build [OPTIONS] <INPUT> --sym <sym> --target <target>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-o, --out <out> Output file to write to.
--sym <sym> Specify a specific let binding in the ucg file to output.
-t, --target <target> Target output type. (flags, json, env, exec)
ARGS:
<INPUT> Input ucg file to build.
```
## Language Reference ## Language Reference
https://docs.rs/ucg/ https://docs.rs/ucg/

View File

@ -36,7 +36,7 @@ fn do_flags<'a>() -> clap::ArgMatches<'a> {
(@subcommand build => (@subcommand build =>
(about: "Compile a specific ucg file.") (about: "Compile a specific ucg file.")
(@arg sym: --sym +takes_value +required "Specify a specific let binding in the ucg file to output.") (@arg sym: --sym +takes_value +required "Specify a specific let binding in the ucg file to output.")
(@arg target: --target -t +required +takes_value "Target output type. (flags, json, env)") (@arg target: --target -t +required +takes_value "Target output type. (flags, json, env, exec)")
(@arg out: --out -o +takes_value "Output file to write to.") (@arg out: --out -o +takes_value "Output file to write to.")
(@arg INPUT: +required "Input ucg file to build.") (@arg INPUT: +required "Input ucg file to build.")
) )