utilities

package
v2.41.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEncryption

func CheckEncryption(IO *iostreams.IOStreams, cfg *config.Config, client *c8y.Client) error

func ClearEnvironmentVariables

func ClearEnvironmentVariables(shell ShellType)

ClearEnvironmentVariables clears all the session related environment variables by passing a shell snippet to execute via source or eval.

func GetCommandLineArgs

func GetCommandLineArgs() string

func GetFileContentType

func GetFileContentType(out *os.File) (string, error)

GetFileContentType TODO: Fix mime detection because it currently returns only application/octet-stream

func ShowClientEnvironmentVariables

func ShowClientEnvironmentVariables(cfg *config.Config, c8yclient *c8y.Client, shell ShellType)

func ShowEnvironmentVariables

func ShowEnvironmentVariables(cfg map[string]interface{}, shell ShellType)

Types

type ShellType

type ShellType int
const (
	// ShellBash bash
	ShellBash ShellType = iota

	// ShellZSH zsh
	ShellZSH

	// ShellPowerShell PowerShell
	ShellPowerShell

	// ShellFish fish
	ShellFish
)

func (ShellType) FromString

func (t ShellType) FromString(name string) ShellType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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