/fiz

A file wizard command line tool

Primary LanguageGoGNU General Public License v3.0GPL-3.0

fiz Build Status Build status codecov

A file wizard command line tool

Initial wizard json format

Variables are assumed to be string types unless there is a default value

Conditions can either be 1 variable, or multiple variables with operators. Operators include:

- `||` Or
- `&&` And
{
    "templates": [
        { "name": "hello.cpp", "output": "{ClassName}.cpp" },
        { "name": "hello.h", "output": "{ClassName}.h" },
        { "name": "mock_hello.h", "output": "Mock{ClassName}.h", "condition": ["CreateMock"] }
    ],
    "variables": [
        {
            "name": "ClassName",
            "type": "string"
        },
        {
            "name": "CreateMock",
            "type": "bool"
        },
        {
            "name": "CreateNamespace",
            "type": "bool"
        },
        {
            "name": "Namespace",
            "condition": ["CreateNamespace"]
        }
    ]
}