You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can access options and args via function (kingpeon.go#L68) but there is no way for a script template to discover the command that triggered it, or other useful information.
This package is used by go-jira. I'm trying to make a common entry point like so:
The script is the same for every custom command except for the word sync (or whatever command is in play) because I don't see a way to get that info, eg. {{.name}}.
Could we assign . to the config so things like .name or .help work? Or something else?
Adding toJson and fromJson would be great too. The heredoc nonsense above is because go-jira does not compact the JSON. Lastly, a shellquote function would be massively appreciated!
The text was updated successfully, but these errors were encountered:
You can access
options
andargs
via function (kingpeon.go#L68) but there is no way for a script template to discover the command that triggered it, or other useful information.This package is used by go-jira. I'm trying to make a common entry point like so:
The script is the same for every custom command except for the word
sync
(or whatever command is in play) because I don't see a way to get that info, eg.{{.name}}
.Could we assign
.
to the config so things like.name
or.help
work? Or something else?Adding
toJson
andfromJson
would be great too. The heredoc nonsense above is becausego-jira
does not compact the JSON. Lastly, ashellquote
function would be massively appreciated!The text was updated successfully, but these errors were encountered: