Skip to content

Conversation

@iamazeem
Copy link
Contributor

@iamazeem iamazeem commented Aug 27, 2025

Related: cli/cli#11572

Local testing by replacing go-gh module

cli/go.mod

replace github.com/cli/go-gh/v2 => ../go-gh

Test

# Get the title of the first issue from `cli/go-gh` repo
$ ./bin/gh issue list --repo cli/go-gh --limit 1 --json title --jq .[].title
Use UserCacheDir and UserConfigDir instead of custom implementation


# Get the title of the first issue from `cli/go-gh` repo and replace spaces with ellipsis
$ ./bin/gh issue list --repo cli/go-gh --limit 1 --json title --template '{{range .}}{{.title | replace " " "..."}}{{end}}'
Use...UserCacheDir...and...UserConfigDir...instead...of...custom...implementation

Signed-off-by: Azeem Sajid azeem.sajid@gmail.com

Copy link
Member

@BagToad BagToad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies @iamazeem! This fell off my radar 🙏 LGTM!

@BagToad BagToad merged commit 4d3e492 into cli:trunk Oct 22, 2025
6 checks passed
@iamazeem iamazeem deleted the cli-11572-expose-replace-sprig-function branch October 22, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants