mirror of
https://github.com/corda/corda.git
synced 2025-02-11 13:16:10 +00:00
ENT-3965 Improved welcome message for Standalone Shell - bye command to exit shell only, docs clarifications gracefulShutdown/shutdown needs 'run' as other commands (#5363)
This commit is contained in:
parent
6db3ded032
commit
4c7604b5c3
@ -205,8 +205,8 @@ Shutting down the node
|
|||||||
|
|
||||||
You can shut the node down via shell:
|
You can shut the node down via shell:
|
||||||
|
|
||||||
* ``gracefulShutdown`` will put node into draining mode, and shut down when there are no flows running
|
* ``run gracefulShutdown`` will put node into draining mode, and shut down when there are no flows running
|
||||||
* ``shutdown`` will shut the node down immediately
|
* ``run shutdown`` will shut the node down immediately
|
||||||
|
|
||||||
Output Formats
|
Output Formats
|
||||||
**********************
|
**********************
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
package net.corda.tools.shell.base
|
||||||
|
|
||||||
|
// Note that this file MUST be in a sub-directory called "base" relative to the path
|
||||||
|
// given in the configuration code in InteractiveShell.
|
||||||
|
|
||||||
|
// Copy of the login.groovy file from 'shell' module with the welcome tailored for the standalone shell
|
||||||
|
welcome = """
|
||||||
|
|
||||||
|
Welcome to the Corda interactive shell.
|
||||||
|
Useful commands include 'help' to see what is available, and 'bye' to exit the shell.
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
prompt = { ->
|
||||||
|
return "${new Date()}>>> "
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user