utils

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHtmlPage

func BuildHtmlPage(content string, title string, css string, js string) (string, error)

func GetWWW

func GetWWW() embed.FS

func SplitStringAndCleanup

func SplitStringAndCleanup(s string, sep string) []string

SplitStringAndCleanup splits a string in s using a separator in sep and removes all empty lines

func WithSpinner

func WithSpinner(text string, action func(s *spinner.Spinner))

WithSpinner invokes and action by using an initial preifx text

Types

type GitBranchAndRemotes

type GitBranchAndRemotes struct {
	Branch  string
	Remotes []string
}

func GetGitBranchAndRemotes

func GetGitBranchAndRemotes() (GitBranchAndRemotes, error)

GetGitBranchAndRemotes detects the current branch and all remotes of the current working directory

Jump to

Keyboard shortcuts

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