Documentation ¶
Overview ¶
Package cosh defines convenient utility functions for use in the cosh shell, available with the cosh prefix.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllFiles ¶ added in v0.2.2
AllFiles returns a list of all files (excluding directories) under the given path.
func ReplaceInFile ¶
ReplaceInFile replaces all occurrences of given string with replacement in given file, rewriting the file. Also returns the updated string.
func SplitLines ¶
SplitLines returns a slice of given string split by lines with any extra whitespace trimmed for each line entry.
func StringsToAnys ¶
StringsToAnys converts a slice of strings to a slice of any, using slicesx.ToAny. The interpreter cannot process generics yet, so this wrapper is needed. Use for passing args to a command, for example.
Types ¶
This section is empty.