Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28198: cli: hint client flags in the output of `cockroach start` r=knz a=knz Fixes #14325. Requested by @sploiselle. When one starts a node with the --host/--advertise flag, all future clients commands require the same value in --host. However, there is no in-app messaging that communicates this requirement, nor is there a command that you can run to find out what the --host flag was set to. Ditto for --certs-dir. This patch enhances the situation by announcing the command prefix to use for client commands in the output of `cockroach start`. For example: ``` % ./cockroach start --certs-dir=certs --host=localhost CockroachDB node starting [...] ... client flags: ./cockroach --host=localhost --port=26257 --certs-dir=certs ... ``` ``` % ./cockroach start --certs-dir=certs --host=localhost --advertise-host=kenax CockroachDB node starting [...] ... client flags: ./cockroach --host=kenax --port=26257 --certs-dir=certs ... ``` Release note (cli change): `cockroach start` now informs the user of which command-line flags to use to access the newly started node in client commands (e.g. `cockroach quit` etc.). Co-authored-by: Raphael 'kena' Poss <[email protected]>
- Loading branch information