From 163374e7187f223882d76beaafdb48cf3393be91 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 22 Jul 2022 22:05:04 +0300 Subject: [PATCH] added ability to generate script skeleton for template generator --- template/Cargo.toml | 4 +- template/README.md | 58 +++++++++----- template/src/main.rs | 181 +++++++++++++++++++++++++++++++++++-------- 3 files changed, 190 insertions(+), 53 deletions(-) diff --git a/template/Cargo.toml b/template/Cargo.toml index 1b85a2369..aa63185e5 100644 --- a/template/Cargo.toml +++ b/template/Cargo.toml @@ -14,4 +14,6 @@ readme = "README.md" rust-version = "1.56" [dependencies] -clap = { version = "3", features = ["derive"] } \ No newline at end of file +clap = { version = "3", features = ["derive"] } +uuid = { version = "1", features = ["v4"] } +convert_case = "0.5.0" \ No newline at end of file diff --git a/template/README.md b/template/README.md index 2af07864e..d47c4239c 100644 --- a/template/README.md +++ b/template/README.md @@ -1,34 +1,50 @@ -# Fyrox Engine Project Template Generator +# Fyrox Engine Template Generator -This tiny utility handles project generation for Fyrox Game Engine. It creates a workspace with three projects: +This tiny utility handles project and script generation for Fyrox Game Engine. + +## Installation + +Install it via `cargo install`: + +```shell +cargo install fyrox-template +``` + +## Generating New Project + +`fyrox-template init [--name --style