Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 23 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL