cobra
cobra copied to clipboard
//go:embed issues errors for template
Hii guys,
so i have a template to be executed in my cli package which can kickstart a server and load the template, but i couldn't run the cli tool after build/installation.
i kept getting errors
2022/08/06 18:41:30 Error loading index template: template: pattern matches no files: `templates/creds.html
how can i fix this please?
I'm not sure I fully understand the problem, can you clarify a few things?
i have a template to be executed
Is this a template that cobra-cli is consuming to generate your CLI? Or do you mean you already have a CLI tool built and it utilizes templates?
i couldn't run the cli tool after build/installation
Is this the error that your CLI tool is giving, or do you mean when you run cobra-cli it gives you this error?
On the surface it sounds to me like you're experiencing this problem from your CLI so the error would be there. This may be the kind of issue you're encountering: https://stackoverflow.com/questions/71394849/how-to-solve-template-pattern-matches-no-files
The Cobra project currently lacks enough contributors to adequately respond to all issues. This bot triages issues and PRs according to the following rules:
- After 60d of inactivity, lifecycle/stale is applied. - After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied and the issue is closed. You can:
- Make a comment to remove the stale label and show your support. The 60 days reset. - If an issue has lifecycle/rotten and is closed, comment and ask maintainers if they'd be interseted in reopening