-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[Serve] support -h to serve cli #35754
Conversation
* also added serve symlink to setup-dev.py script issue: ray-project#35734 Signed-off-by: Gene Su <e870252314@gmail.com>
python/ray/setup-dev.py
Outdated
@@ -122,6 +122,7 @@ def do_link(package, force=False, skip_list=None, local_path=None): | |||
skip_list=args.skip, | |||
local_path="../../../dashboard", | |||
) | |||
do_link("serve", force=args.yes, skip_list=args.skip) |
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.
Could you please do this in a separate PR? Better to keep things orthogonal where possible, makes it easier to track down issues if they happen.
In this case it's minor, but better to be disciplined about it.
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.
np, let me take this part out and open a separate PR
Signed-off-by: Gene Su <e870252314@gmail.com>
e6728c3
to
8ed6643
Compare
python/ray/serve/scripts.py
Outdated
@click.group(help="CLI for managing Serve applications on a Ray cluster.") | ||
@click.group( | ||
help="CLI for managing Serve applications on a Ray cluster.", | ||
context_settings=CONTEXT_SETTINGS, |
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.
[Nit] Could you pass in the CONTEXT_SETTING
dictionary directly instead of using a constant? Afaik, this dictionary is only used in this argument, so I don't think it needs to be stored as a global constant.
Signed-off-by: Gene Su <e870252314@gmail.com>
`-h` is a common pattern and is not currently supported on `serve` cli. This PR adds the support to call `serve -h`
Re: #35754 We previously added `-h` help command to the serve cli's click group. This caused the autogenerated help message to take `-h` as the default help command. For `serve run` we have a collusion on `-h` as it's used for host option as well. This PR changed the order of the click help option so the `--help` will be used in autogenerated help messages.
Re: ray-project#35754 We previously added `-h` help command to the serve cli's click group. This caused the autogenerated help message to take `-h` as the default help command. For `serve run` we have a collusion on `-h` as it's used for host option as well. This PR changed the order of the click help option so the `--help` will be used in autogenerated help messages. Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Re: #35754 We previously added `-h` help command to the serve cli's click group. This caused the autogenerated help message to take `-h` as the default help command. For `serve run` we have a collusion on `-h` as it's used for host option as well. This PR changed the order of the click help option so the `--help` will be used in autogenerated help messages. Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com> Co-authored-by: Gene Der Su <e870252314@gmail.com>
Re: ray-project#35754 We previously added `-h` help command to the serve cli's click group. This caused the autogenerated help message to take `-h` as the default help command. For `serve run` we have a collusion on `-h` as it's used for host option as well. This PR changed the order of the click help option so the `--help` will be used in autogenerated help messages. Signed-off-by: NripeshN <nn2012@hw.ac.uk>
`-h` is a common pattern and is not currently supported on `serve` cli. This PR adds the support to call `serve -h` Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Re: ray-project#35754 We previously added `-h` help command to the serve cli's click group. This caused the autogenerated help message to take `-h` as the default help command. For `serve run` we have a collusion on `-h` as it's used for host option as well. This PR changed the order of the click help option so the `--help` will be used in autogenerated help messages. Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Re: ray-project#35754 We previously added `-h` help command to the serve cli's click group. This caused the autogenerated help message to take `-h` as the default help command. For `serve run` we have a collusion on `-h` as it's used for host option as well. This PR changed the order of the click help option so the `--help` will be used in autogenerated help messages. Signed-off-by: Victor <vctr.y.m@example.com>
Why are these changes needed?
-h
is a common pattern and is not currently supported onserve
cli. This PR adds the support to callserve -h
Related issue number
Closes #35734
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.python python/ray/setup-dev.py -y
then seeingserve -h
working