Skip to content

feat: add option for redirecting info#48

Merged
dwilding merged 1 commit intomainfrom
redirect-output
Nov 27, 2025
Merged

feat: add option for redirecting info#48
dwilding merged 1 commit intomainfrom
redirect-output

Conversation

@dwilding
Copy link
Copy Markdown
Owner

This PR adds an option --return-dir for use when cloning a repo. If this option is specified, gimmegit outputs all info lines to stderr and outputs the clone directory to stdout. Otherwise, gimmegit outputs all info lines to stdout, as before.

The intended usage is:

clone_dir="$(gimmegit --return-dir owner/project)"
cd "$clone_dir"

I'm also fixing a bug in the detection of whether to output colors (and other formatting). Previously, gimmegit would only consider whether stdout was a terminal. This meant that errors and warnings wouldn't use color if stderr was a terminal but stdout wasn't.

@dwilding dwilding merged commit a65a447 into main Nov 27, 2025
2 checks passed
@dwilding dwilding deleted the redirect-output branch November 27, 2025 03: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.

1 participant