completion
Output a shell tab-completion script for nschema.
nschema completion <shell>Supported shells: bash, zsh, fish, pwsh.
Installing automatically
Section titled “Installing automatically”The quickest way to enable completion permanently is completion install,
which wires it into your shell’s startup file for you:
nschema completion install bashRemove it again with completion uninstall:
nschema completion uninstall bashInstalling manually
Section titled “Installing manually”Prefer to manage it yourself? Source the script in your current shell, or write it to your shell’s completion directory:
# current shellsource <(nschema completion bash)# install permanentlynschema completion bash > /etc/bash_completion.d/nschema# current shellsource <(nschema completion zsh)# install permanentlynschema completion zsh > "${fpath[1]}/_nschema"# current shellnschema completion fish | source# install permanentlynschema completion fish > ~/.config/fish/completions/nschema.fish# current sessionnschema completion pwsh | Out-String | Invoke-Expression# install permanently: add that line to your $PROFILEWhat completes
Section titled “What completes”Completion covers commands, options, and their fixed value sets (for example the --destructive-actions
error|warn|allow choices). It also completes dynamic values that depend on your project: --environment <TAB>
offers the environment names found in the project’s *.env.<name>.sql overlays,
resolved against any --directory already on the line.
Nothing. It writes a completion script to stdout.