provide an environment variable with the temp directory name

Open
#146 3 comments 1 reaction 0 assignees View on GitHub

@jeff350 is already working on this.

Since Feb 13, 2024.

  • #147 by @jeff350 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

The issue names no file or test; begin by tracing where git-xargs creates its temporary repository directory and assembles the command environment. Done means exposing that path as XARGS_REPO_DIRECTORY so callers such as copier can use it as the target directory, with the existing CLI behavior preserved.

Written by the indexing model from the issue text.

Description

enhancement

Describe the solution you'd like
add a XARGS_REPO_DIRECTORY variable to access the path of the temporary directory

Describe alternatives you've considered
I can't find an easy way to access the path

Additional context
I came across this issue while trying to use git-xargs to appy copier templates across a large number of repos. The issue is that copier requires both the template and target directory to be specified. Here copier's target directory needs to be git-args temp directory

Dominant language
Go
Stars
1.1k
Forks
75
Avg merge
22h 5m
Merged PRs (30d)
4

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from gruntwork-io/git-xargs

All issues in gruntwork-io/git-xargs

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.