helper

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile added in v0.2.0

func CopyFile(src, dst string) error

CopyFile copies file src to file dst

func GetCommandName

func GetCommandName() string

GetCommandName returns the filename of the droxy binary

func GetCommandNameFilename

func GetCommandNameFilename(commandName string) string

GetCommandNameFilename returns the binary filename of the given proxy command name

func GetExecutableFilePath

func GetExecutableFilePath() (string, error)

GetExecutableFilePath returns the file-path of the droxy binary

func GetExecutablePath

func GetExecutablePath() (string, error)

GetExecutablePath returns the path of the directory where droxy binary is located

func IsTerminalContext

func IsTerminalContext() bool

IsTerminalContext checks if the current process is in a terminal context

func NewLoggingWriter

func NewLoggingWriter(targetWriter io.Writer, logger *logrus.Logger, logginPrefix string) io.Writer

NewLoggingWriter returns a new writer that also logs the output it writes

func ParseCommandNameFromCommandLine

func ParseCommandNameFromCommandLine() string

ParseCommandNameFromCommandLine returns the called proxy command from cli args

func StringInSlice

func StringInSlice(s string, slice []string) bool

StringInSlice checks if s is part of slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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