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

shellinit

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package shellinit génère le code d'intégration bash et zsh qui capte les erreurs des commandes docker et les transmet à docker-telemach explain.

Index

Constants

View Source
const EnvVar = "TELEMACH_SHELL"

EnvVar est la variable exportée par l'intégration shell.

Variables

This section is empty.

Functions

func Script

func Script(shell, binPath, version, pendingDir string) (string, error)

Script renvoie le code d'intégration à évaluer dans le shell donné. binPath est le chemin du binaire docker-telemach à appeler ; vide, le binaire est cherché dans le PATH. version est celle du plugin, exportée avec le shell dans TELEMACH_SHELL (« zsh:0.3.0 ») ; pendingDir est le dossier des signaux affichés à l'invite (feature 004).

func ShellValue added in v0.3.0

func ShellValue(shell, version string) string

ShellValue est la valeur de EnvVar pour un shell et une version (« zsh:0.3.0 »).

Types

This section is empty.

Jump to

Keyboard shortcuts

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