util

package
v0.0.0-...-73d97a9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeDir

func ChangeDir(newDir string) error

func Clear

func Clear()

func Exit

func Exit()

func IsTmuxActive

func IsTmuxActive() (bool, error)

func OpenEditor

func OpenEditor(editor string) error

func Openbrowser

func Openbrowser(url string) error

func Rando

func Rando(max ...int) int

func RunCommand

func RunCommand(command []string) error

func StartTmuxSession

func StartTmuxSession(sessionName string, editorCmd string) error

func StrFormat

func StrFormat(input string) string

this function formats strings for tmux session names as tmux session names cannot contain periods and will rename them to underscore

example: .github.reponame -> _github_reponame

func WrapText

func WrapText(text string, width int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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