Add workdir commands for jobs and tasks#926
Open
Kobzol wants to merge 4 commits intoIt4innovations:mainfrom
Open
Add workdir commands for jobs and tasks#926Kobzol wants to merge 4 commits intoIt4innovations:mainfrom
Kobzol wants to merge 4 commits intoIt4innovations:mainfrom
Conversation
Implements the task workdir command requested in issue It4innovations#644. The command displays working directories for selected tasks within a specific job. Features: - CLI output showing task-specific working directories - JSON output with task_id -> workdir mapping - Quiet output mode support - Supports task ID arrays and ranges - Job selector supports "last" and specific job IDs - Resolves task-specific working directory paths - Integrates with existing task selection mechanisms Usage: - hq task workdir <job_selector> <task_selector> - hq task workdir 1 2 - hq task workdir last 1-5 - hq task workdir 2 1,3,5 The implementation reuses the existing task path resolution system to provide accurate working directory information for individual tasks, complementing the job-level workdir command. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
c41613d to
a7ee93e
Compare
Remove unused imports and variables in test files
Remove unused variable assignment
Auto-format Python test files according to project standards
Collaborator
|
The implementation looks good, but UX seems little bit weird.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the
hq job workdirandhq task workdircommands requested in #644.These commands provide a convenient way to quickly retrieve working directory information for jobs and tasks without parsing verbose
infocommand output.Features
hq job workdir <selector>hq task workdir <job_selector> <task_selector>Output Formats
Both commands support:
Examples
Implementation Details
resolve_task_pathsfunctionalityTest Coverage
Comprehensive test suite covering:
All tests pass successfully.
Fixes
Closes #644
🤖 Generated with Claude Code