Documentation ¶
Index ¶
- func AppendLine(file string, line string) error
- func GetBashConfigFile() (string, error)
- func GetFishConfigFile() (string, error)
- func GetPosixConfigFile() (string, error)
- func GetZshConfigFile() (string, error)
- func RemoveLine(file string, lineToRemove string) error
- type ErrLineAlreadyExists
- type ErrLineNotFound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendLine ¶
AppendLine writes a line to a file if it does not already exist
func GetBashConfigFile ¶
func GetFishConfigFile ¶
func GetPosixConfigFile ¶ added in v0.15.0
func GetZshConfigFile ¶
func RemoveLine ¶
RemoveLine removes a line from a file if it exists
Types ¶
type ErrLineAlreadyExists ¶
type ErrLineAlreadyExists struct {
File string
}
func (*ErrLineAlreadyExists) Error ¶
func (e *ErrLineAlreadyExists) Error() string
type ErrLineNotFound ¶
type ErrLineNotFound struct {
File string
}
func (*ErrLineNotFound) Error ¶
func (e *ErrLineNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.