I'm trying to use Sourcery to generate an app secrets file for build automation, as documented in more than one place online. But the most basic of Sourcery commands seems to not substitute args. I'm invoking it like this:
/usr/local/bin/sourcery --output ServiceKeysTest.gitignore.swift --templates ServiceKeysTemplate.stencil --args foo=bar --sources .
My template is:
struct
Something
{
let foo = "{{ foo }}"
}
But the result I'm getting is
// Generated using Sourcery 1.6.0 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
struct
Something
{
let foo = ""
}
What am I missing? I can't find a simple example like this in the docs anywhere.