GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — stackit-cli/AUTOCOMPLETION.md at main · eBeyond/stackit-cli

Expand file tree

/

AUTOCOMPLETION.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
65 lines (41 loc) · 1.51 KB
/

AUTOCOMPLETION.md

Copy path

File metadata and controls

65 lines (41 loc) · 1.51 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Autocompletion

This guide describes how you can enable command autocompletion for the STACKIT CLI by leveraging the functionality provided the Cobra framework.

The process may vary depending on the type of shell you are using and your operating system (OS).

You will need to start a new shell for the setup to take effect.

bash

This process depends on the bash-completion package. If you don't have it installed already, you can install it via your OS's package manager.

Linux

stackit completion bash > ~/.bash_completion

macOS

stackit completion bash > $(brew --prefix)/etc/bash_completion.d/stackit

zsh

If shell completion is not already enabled in your environment you will need to enable it by executing the following once:

echo "autoload -U compinit; compinit" >> ~/.zshrc

Linux

stackit completion zsh > "${fpath[1]}/_stackit"

macOS

stackit completion zsh > $(brew --prefix)/share/zsh/site-functions/_stackit

Additionally, you might also need to run:

source $(brew --prefix)/share/zsh/site-functions/_stackit >> ~/.zshrc

PowerShell

You can load completions for your current shell session by running:

stackit completion powershell | Out-String | Invoke-Expression

To load completions for every new session, add the output of the above command to your PowerShell profile.

fish

stackit completion fish > ~/.config/fish/completions/stackit.fish
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.