mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-28 04:46:42 -04:00
35 lines
798 B
Go
35 lines
798 B
Go
package core
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
var (
|
|
Home, _ = os.UserHomeDir()
|
|
)
|
|
|
|
const (
|
|
FSSpace = "\u259d" // ▝ space/list separator
|
|
FSPath = "\u259e" // ▞ path separator
|
|
FSMisc = "\u259f" // ▟ misc. field separator (if \u259d is already used)
|
|
|
|
AnsiError = "\033[38;5;9m"
|
|
AnsiReset = "\033[0m"
|
|
|
|
LibmuttonVersion = "0.2.B" // untagged releases feature a letter suffix corresponding to the eventual release version, e.g "0.2.A" -> "0.2.0", "0.2.B" -> "0.2.1"
|
|
)
|
|
|
|
// numeric error codes legend
|
|
// 0: no error
|
|
// 101: read error
|
|
// 102: write error
|
|
// 103: sync process error
|
|
// 104: server connection error
|
|
// 105: target not found
|
|
// 106: target already exists
|
|
// 107: target wrong type (file/directory)
|
|
// 108: decryption error
|
|
// 109: encryption error
|
|
// 110: clipboard error
|
|
// 111: other error
|