On Monday, 18 June 2018 at 10:42:53 UTC, Dechcaudron wrote:
On Sunday, 17 June 2018 at 23:04:59 UTC, bauss wrote:
For more information see the Github repository and for examples see the read me.

Could we get a complete, simple usage example? Like target directory structure and how to invoke the program to get to it.

Simple template example for ex. a class:

```
emerald d class myclass myclass MyClass

...

emerald [root] [template] [$1] [$2] [$3]
```

Will generate a file called myclass.d with the following content:

```
module myclass;

class MyClass
{
        public:
        this()
        {
        }
}
```

An example on scaffolding ex. an empty project with a dub.json would be:

```
-sc dub myproject -ex
```

Which will basically create a Hello World! example with a minimal dub.json

It's possible to fetch scaffolding archives remote, as well fetch templates online.

See the --remote / -r commands for that.

https://github.com/DiamondMVC/emeralD#--remote-root-template-url---rm-root-template-url

https://github.com/DiamondMVC/emeralD#--remote--scaffold-name-url---rm--sc-name-url

For examples on templates just see the the folders "templates" and "scaffold" in the repository.

Reply via email to