-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cli] UI URL hints for common CLI commands #24454
Open
philrenaud
wants to merge
19
commits into
main
Choose a base branch
from
24445-cli-read-more-with-context
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
35cd43d
Basic implementation for server members and node status
philrenaud cd2b39b
Commands for alloc status and job status
philrenaud fe8f490
-ui flag for most commands
philrenaud 69d9eed
url hints for variables
philrenaud c5284ca
url hints for job dispatch, evals, and deployments
philrenaud ca5585d
agent config ui.cli_url_links to disable
philrenaud 92260d9
Fix an issue where path prefix was presumed for variables
philrenaud 2f63066
driver uncomment and general cleanup
philrenaud f2a34f0
-ui flag on the generic status endpoint
philrenaud e9d1c96
Job run command gets namespaces, and no longer gets ui hints for --ou…
philrenaud 886fd17
Dispatch command hints get a namespace, and bunch o tests
philrenaud ab04287
Lots of tests depend on specific output, so let's not mess with them
philrenaud 4343017
figured out what flagAddress is all about for testServer, oof
philrenaud 921af32
Parallel outside of test instances
philrenaud c034396
Browser-opening test, sorta
philrenaud 0952bb6
Env var for disabling/enabling CLI hints
philrenaud bf906c1
Addressing a few PR comments
philrenaud 5b5a482
CLI docs available flags now all have -ui
philrenaud 89d66e4
PR comments addressed; switched the env var to be consistent and scru…
philrenaud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
cli: Added UI URL hints to the end of common CLI commands and a `-ui` flag to auto-open them | ||
``` |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This maintains formatting but sends the hint to stderr instead of stdout to avoid interfering with redirection and pipes:
Now I guess in theory someone could be monitoring for any output on stderr to indicate a problem, but there's no way to ever make a CLI change that doesn't risk breaking someone's behavior. I don't think we should leave our CLI output frozen forever after initial release Just In Case someone relies on its precise behavior. The HTTP APIs that back the CLI is a much more robust interface for scripts to use.