utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DotfilesDir

func DotfilesDir() (string, error)

func FirstExistingPath

func FirstExistingPath(paths ...string) (string, error)

func HomeToRepo

func HomeToRepo(p string) (string, error)

HomeToRepo converts a path in the home directory to a path in the dotfiles

func IsIn added in v0.0.2

func IsIn(path string, dir string) bool

IsIn checks if a path is in a directory It returns false if the path is the directory itself

func IsSymlink(path string) bool

func PathExists

func PathExists(path string) bool

func RepoToHome

func RepoToHome(p string) (string, error)

RepoToHome converts a path in the dotfiles directory to a path in the home directory

func Run

func Run(name string, arg ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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