Skip to main content

Module completions

Module completions 

Source
Expand description

seshat completions — generate shell completion scripts. seshat completions — print a shell completion script to stdout.

When invoked without an explicit <shell> argument, the target is auto-detected from the $SHELL environment variable (basename of the login shell). On Windows we fall back to PowerShell when $SHELL is unset. If detection fails we return CliError::InvalidArgument with a friendly hint listing the supported shells.

Functions§

run_completions
Print the completion script for shell (or the auto-detected current shell) to stdout.