Documentation
¶
Overview ¶
Package shell holds the sourced shim templates and helpers for emitting shell-appropriate environment statements.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Supported = []string{"bash", "zsh", "fish"}
Supported shells for `gcloudenv init`.
Functions ¶
func ExportStatement ¶
ExportStatement renders "set VAR to value" in the syntax of the target shell. shellName "fish" uses `set -gx`; everything else uses POSIX `export`.
func Init ¶
Init returns the integration snippet to be sourced for the given shell. bash and zsh share a template.
func UnsetStatement ¶ added in v1.3.0
UnsetStatement renders a statement that removes VAR from the environment. shellName "fish" uses `set -e`; everything else uses POSIX `unset`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.