Add --project-id option to project set command#135
Merged
Conversation
Owner
|
@sgasser This has been approved. However in order for this to be merged, please amend your commit to have a verified signature: Thank you! |
Adds a --project-id option to 'claudesync project set' command to enable non-interactive project selection by UUID. This addresses a gap in automation support where 'organization set' has --org-id but 'project set' lacked an equivalent option. Usage: claudesync project set --project-id <uuid> The implementation: - Follows the same pattern as 'organization set --org-id' for consistency - Extracts common project selection logic into _save_project_selection() helper function to avoid code duplication - Falls back to interactive mode when option is not provided (backwards compatible) - Provides helpful error message when project not found, suggesting --all flag for submodule projects
92abd9e to
018df80
Compare
Contributor
Author
|
Commit has been signed with GPG. Ready to merge. |
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.
This change adds a --project-id option to 'claudesync project set' that allows non-interactive project selection by UUID. This is useful for automation scripts that need to switch between projects programmatically.
Usage:
claudesync project set --project-id <uuid>The implementation follows the same pattern as the existing 'organization set' command which already has --org-id for non-interactive selection.