Added console scripts to the embedded server to add a deephaven console script that can launch deephaven
Tested by building and installing the deephaven_server whl
deephaven is the root script, with server being the only positional "command" argument and ran by default
Figured I'd add command as a positional argument, in case we want to add other commands (e.g. run to run a specific file)
Parse arguments for host, port, jvm-args, and extra-classpath
If no key provided, a random key is generated
After starting, waits for the user to press Ctrl+C to exit
Examples:
deephaven server: Starts up Deephaven server on port 8080 with a random key and opens the web UI.
deephaven server --port 9999: Starts up Deephaven on port 9999.
deephaven server --jvm-args="-Ddeephaven.dataDir=/tmp/deephaven": Starts up Deephaven with /tmp/deephaven as the data directory.
deephaven server --port 9999 --jvm-args="-Ddeephaven.dataDir=/tmp/deephaven-data -Ddeephaven.console.disable=true": Starts up Deephaven on port 9999, using /tmp/deephaven as the data directory and the console disabled.
deephaven --help: Prints help about what commands are available
deephaven server --help: Prints help about the server comand
This issue was auto-generated
PR: https://github.com/deephaven/deephaven-core/pull/5275 Author: mofojed
Original PR Body
deephaven
console script that can launch deephavendeephaven_server
whldeephaven
is the root script, withserver
being the only positional "command" argument and ran by defaultrun
to run a specific file)host
,port
,jvm-args
, andextra-classpath
Examples:
deephaven server
: Starts up Deephaven server on port 8080 with a random key and opens the web UI.deephaven server --port 9999
: Starts up Deephaven on port 9999.deephaven server --jvm-args="-Ddeephaven.dataDir=/tmp/deephaven"
: Starts up Deephaven with/tmp/deephaven
as the data directory.deephaven server --port 9999 --jvm-args="-Ddeephaven.dataDir=/tmp/deephaven-data -Ddeephaven.console.disable=true"
: Starts up Deephaven on port 9999, using/tmp/deephaven
as the data directory and the console disabled.deephaven --help
: Prints help about what commands are availabledeephaven server --help
: Prints help about the server comand