Skip to content

feat: Allow passing the server URL positionally for login & logout#796

Merged
atheriel merged 1 commit into
mainfrom
aj-login-no-server-param
Jun 25, 2026
Merged

feat: Allow passing the server URL positionally for login & logout#796
atheriel merged 1 commit into
mainfrom
aj-login-no-server-param

Conversation

@atheriel

Copy link
Copy Markdown
Contributor

Intent

This commit adjusts the login and logout subcommands to accept the Connect server URL as a positional argument (in addition to the -s/--server option), making them more intuitive to use:

$ rsconnect login https://connect.company.internal

rather than

$ rsconnect login -s https://connect.company.internal

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change

Automated Tests

Unit tests are included.

Checklist

  • I have updated CHANGELOG.md to cover notable changes.
  • I have updated all related GitHub issues to reflect their current state.
  • I have run the rsconnect-python-tests-at-night workflow in Connect against this feature branch.

This commit adjusts the `login` and `logout` subcommands to accept the
Connect server URL as a positional argument (in addition to the
-s/--server option), making them more intuitive to use:

    $ rsconnect login https://connect.company.internal

rather than

    $ rsconnect login -s https://connect.company.internal

Unit tests are included.

Signed-off-by: Aaron Jacobs <aaron.jacobs@posit.co>
@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-25 19:30 UTC

@github-actions

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
7278 5967 82% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/main.py 80% 🟢
TOTAL 80% 🟢

updated for commit: 92eaf1e by action🐍

@nealrichardson nealrichardson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

YES

@atheriel atheriel merged commit 5a99494 into main Jun 25, 2026
23 checks passed
@atheriel atheriel deleted the aj-login-no-server-param branch June 25, 2026 19:30
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