<#10354 fix: show the Meltano Cloud hints at the e...
# meltano-repo-activity
g
#10354 fix: show the Meltano Cloud hints at the end of the command output Pull request opened by ReubenFrankel Description Since #10335, a logged out user sees a hint to log in to Meltano Cloud, but a long command output buries it. The hint is also a verbose info log line, so a user can easily skip it. A logged in user reads the Cloud index, which lists only the plugins that Meltano supports, and gets no hint about what to do when a plugin is missing. Both hints are now one short, bright yellow line on stderr, after the command output:
Copy code
Run 'meltano cloud auth login' to get supported plugins from Meltano Cloud
Copy code
Something missing? Contact the team at <https://meltano.com/contact>
• Replace the login info log line with a
click.secho
call to stderr, which runs when the click context closes. • Show the login hint only when the command succeeds, so that an error stays the last line of the output. • Require
click>=8.3
, the first version that passes the error to a context resource on close. • Show the support hint after
meltano hub list
when it reads the Cloud index, in the text and the JSON format. • Change the 3 existing tests to read stderr, and add tests for a failed command and for the support hint. The login hint still shows only for a logged out user who has no Hub of their own. It prints last for
meltano hub ping
and
meltano add
. It does not print for a failed
meltano add
, or when
MELTANO_HUB_URL
is set. Checklist • I have read the contribution guide Was generative AI tooling used to co-author this PR? • Yes (please specify the tool below) Generated-by: Claude Code following the agentic coding guidelines Related Issues • Follows #10335 --- 🤖 Generated with Claude Code Summary by Sourcery Improve Meltano Cloud guidance by showing concise, post-command hints for authentication and missing plugins. New Features: • Add concise, highlighted stderr hints for accessing supported Meltano Cloud plugins and requesting missing plugins. Bug Fixes: • Keep the login hint from obscuring command failures by showing it only after successful command completion. Enhancements: • Display the missing-plugin support hint when listing the Meltano Cloud index in both text and JSON formats. • Replace the verbose Cloud login info log with a short post-command CLI hint shown only for eligible logged-out users. Build: • Raise the minimum supported Click version to 8.3. Tests: • Update Hub tests for stderr hints and cover successful, failed, authenticated, custom-Hub, and Cloud-index scenarios. meltano/meltano