integration

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizerCd

func AddFinalizerCd(path string) error

AddFinalizerCd declares a "cd" finalizer (change directory)

func Print

func Print(withCompletion bool, completionScriptProvider CompletionScriptProvider)

Print prints the integration code for the user's shell

Types

type CompletionScriptProvider added in v0.11.0

type CompletionScriptProvider interface {
	GenBashCompletion(w io.Writer) error
	GenZshCompletion(w io.Writer) error
}

type ShellIdentity added in v0.11.0

type ShellIdentity string
var (
	BASH ShellIdentity = "bash"
	ZSH  ShellIdentity = "zsh"
)

func DetectShell added in v0.11.0

func DetectShell() (ShellIdentity, error)

Jump to

Keyboard shortcuts

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