Skip to content

Expose replace sprig function#196

Merged
BagToad merged 1 commit into
cli:trunkfrom
iamazeem:cli-11572-expose-replace-sprig-function
Oct 22, 2025
Merged

Expose replace sprig function#196
BagToad merged 1 commit into
cli:trunkfrom
iamazeem:cli-11572-expose-replace-sprig-function

Conversation

@iamazeem

@iamazeem iamazeem commented Aug 27, 2025

Copy link
Copy Markdown
Contributor

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

@BagToad BagToad left a comment

Copy link
Copy Markdown
Member

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