tmplr
tmplr copied to clipboard
"✘ Error: error: No such remote 'origin'"
Was going to start yet another project of a similar kind today, and was getting tired of copying files around manually and editing them, so I searched for a tool to do it for me, and discovered tmplr. Figured I'd give it a go. Created a local directory that I was going to use as my test-template, and added a few things to its .tmplr.yml
file, before I thought it'd be a good idea to see if it even works before I put much more time into it.
Here's the result of running my npx tmplr
command:
❯ npx tmplr local:C:\Users\alexs\Documents\Projects\RimworldMod\
✘ Error: error: No such remote 'origin'
👉 .tmplr.yml:3:7
1 |# .tmplr.yml
2 |steps:
3 | - read: project_name
4 | from: git.remote_name
5 | fallback:
6 | from: filesystem.rootdir
7 |
8 | - read: clone_url
(The lines 3-6 are highlighted in red; I have no clue why each line is separated by a blank line.)
This error is not at all actionable. What am I meant to do with that information? Why isn't it using the fallback value from filesystem.rootdir
if there's an issue with grabbing the git.remote_name
value? Isn't that what fallbacks are for?