Skip to content

feat: add support for profiles#36

Merged
dhth merged 3 commits intomainfrom
add-support-for-profiles
Apr 7, 2025
Merged

feat: add support for profiles#36
dhth merged 3 commits intomainfrom
add-support-for-profiles

Conversation

@dhth
Copy link
Owner

@dhth dhth commented Mar 18, 2025

Changes cueitup's interface to the following:

Usage:
  cueitup <PROFILE> [flags]

Flags:
  -c, --config-path string   location of cueitup's config file (default "/Users/dhruvthakur/Library/Application Support/cueitup/cueitup.yml")
  -d, --debug                whether to only display config picked up by cueitup
  -D, --delete-messages      whether to start the TUI with the setting "delete messages" ON
  -h, --help                 help for cueitup
  -P, --persist-messages     whether to start the TUI with the setting "persist messages" ON
  -S, --skip-messages        whether to start the TUI with the setting "skip messages" ON

@dhth dhth marked this pull request as ready for review April 7, 2025 17:08
@dhth dhth requested a review from Copilot April 7, 2025 17:08
Copy link

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.

Copilot reviewed 23 out of 24 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • go.mod: Language not supported

Comment on lines +153 to +154
if format != JSON && pc.ContextKey != nil {
return errSubsetKeyCannotBeUsed
Copy link

Copilot AI Apr 7, 2025

Choose a reason for hiding this comment

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

In the validateSubsetKey function, the check erroneously verifies pc.ContextKey instead of pc.SubsetKey; this may allow invalid subset key usage when the format is not JSON. Please update the condition to check pc.SubsetKey instead.

Suggested change
if format != JSON && pc.ContextKey != nil {
return errSubsetKeyCannotBeUsed
if format != JSON && pc.SubsetKey != nil {

Copilot uses AI. Check for mistakes.
@dhth dhth merged commit b66b836 into main Apr 7, 2025
4 of 5 checks passed
@dhth dhth deleted the add-support-for-profiles branch April 7, 2025 17:18
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