Skip to content

feat: improve profile alias and docs#78

Merged
felipefreitag merged 2 commits intomainfrom
feat/improve-profile-alias-and-docs
Mar 13, 2026
Merged

feat: improve profile alias and docs#78
felipefreitag merged 2 commits intomainfrom
feat/improve-profile-alias-and-docs

Conversation

@zenorocha
Copy link
Member

@zenorocha zenorocha commented Mar 13, 2026

Summary by cubic

Add a -p short flag for --profile across the CLI and update help output. Expand the README with a new “Switch between teams and accounts” section covering resend auth switch and the -p flag; tests updated accordingly.

Written for commit 093a62d. Summary will update on new commits.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 4 files

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="README.md">

<violation number="1" location="README.md:206">
P3: This example places the global `--profile` flag after the subcommand, which conflicts with the README's own global-options syntax and can mislead users into calling it with the wrong order.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

You can also use the global `--profile` (or `-p`) flag on any command to run it with a specific profile.

```bash
resend domains list --profile production
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Mar 13, 2026

Choose a reason for hiding this comment

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

P3: This example places the global --profile flag after the subcommand, which conflicts with the README's own global-options syntax and can mislead users into calling it with the wrong order.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At README.md, line 206:

<comment>This example places the global `--profile` flag after the subcommand, which conflicts with the README's own global-options syntax and can mislead users into calling it with the wrong order.</comment>

<file context>
@@ -200,6 +200,12 @@ Switch between profiles without logging in and out:
+You can also use the global `--profile` (or `-p`) flag on any command to run it with a specific profile.
+
+```bash
+resend domains list --profile production
+```
+
</file context>
Suggested change
resend domains list --profile production
resend --profile production domains list
Fix with Cubic

@felipefreitag felipefreitag merged commit 05953c8 into main Mar 13, 2026
7 checks passed
@felipefreitag felipefreitag deleted the feat/improve-profile-alias-and-docs branch March 13, 2026 13:34
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