mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 17:23:08 +08:00
[tune] add-note command for Tune CLI (#4321)
Co-Authored-By: andrewztan <andrewztan12@gmail.com>
This commit is contained in:
@@ -29,10 +29,23 @@ def list_experiments(project_path, sort):
|
||||
commands.list_experiments(project_path, sort)
|
||||
|
||||
|
||||
@cli.command()
|
||||
@click.argument("path", required=True, type=str)
|
||||
@click.option(
|
||||
"--filename",
|
||||
default="note.txt",
|
||||
type=str,
|
||||
help='Specify filename for note.')
|
||||
def add_note(path, filename):
|
||||
"""Adds user notes as a text file at the given path."""
|
||||
commands.add_note(path, filename)
|
||||
|
||||
|
||||
cli.add_command(list_trials, name="ls")
|
||||
cli.add_command(list_trials, name="list-trials")
|
||||
cli.add_command(list_experiments, name="lsx")
|
||||
cli.add_command(list_experiments, name="list-experiments")
|
||||
cli.add_command(add_note, name="add-note")
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user