Documentation
¶
Overview ¶
Package cmd implements the rdsh command-line interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute() int
Execute runs the root command and returns the process exit code. A run a signal ended reports nothing and dies of that signal instead, so on unix this usually does not return at all; what it returns there is only for the platforms and dispositions that cannot deliver one.
SIGINT and SIGTERM cancel the command context so a running query can cancel its server-side job before the process goes, and so `auth login` abandons a prompt it is waiting on.
An explicit channel rather than signal.NotifyContext, which can support neither half of that: its cancellation cause is an unexported type that is not an os.Signal, so the signal cannot be recovered to re-raise it, and it keeps the handler installed for the whole run, which swallows a second signal sent during a slow clean-up.
Types ¶
This section is empty.