Skip to content

Conversation

@alexec
Copy link
Contributor

@alexec alexec commented Nov 1, 2025

Call os.Chdir(workDir) early in run and return an error if it fails Add an empty prompt.md placeholder

Call os.Chdir(workDir) early in run and return an error if it fails Add
an empty prompt.md placeholder
@alexec
Copy link
Contributor Author

alexec commented Nov 1, 2025

@copilot add a short test.

Copy link
Contributor

Copilot AI commented Nov 1, 2025

@alexec I've opened a new pull request, #32, to work on those changes. Once the pull request is ready, I'll request review from you.

* Initial plan

* Add test for -C option to change working directory

Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
@alexec alexec closed this Nov 1, 2025
@alexec alexec reopened this Nov 1, 2025
@alexec alexec requested a review from Copilot November 1, 2025 05:00
@alexec alexec marked this pull request as ready for review November 1, 2025 05:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a -C (change directory) flag that allows the application to change to a specified working directory before processing prompts and tasks. This enables running the tool from a different location while operating on files in a target directory.

Key changes:

  • Added a new workDir flag that defaults to the current directory
  • Implemented directory change logic at the start of the run() function
  • Added comprehensive integration test coverage for the new functionality

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
main.go Added workDir variable, -C flag registration, and directory change logic
integration_test.go Added integration test to verify the -C flag works correctly with relative paths

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

alexec and others added 2 commits October 31, 2025 22:04
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@alexec alexec merged commit 989d8c6 into main Nov 1, 2025
1 check passed
@alexec alexec deleted the chdir branch November 1, 2025 05:04
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