mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-06 09:07:14 -04:00
Enforce more consistent meanings for the various field separator characters
This commit is contained in:
+3
-3
@@ -13,8 +13,8 @@ import (
|
|||||||
|
|
||||||
// Field separator key:
|
// Field separator key:
|
||||||
// \x1d = path separator
|
// \x1d = path separator
|
||||||
// \x1e = space separator
|
// \x1e = space/list separator
|
||||||
// \x1f = misc. field separator
|
// \x1f = misc. field separator (if \x1e is already used)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
args := os.Args
|
args := os.Args
|
||||||
@@ -54,7 +54,7 @@ func main() {
|
|||||||
// stdin[0] is expected to be the device ID
|
// stdin[0] is expected to be the device ID
|
||||||
os.Create(backend.ConfigDir + backend.PathSeparator + "devices" + backend.PathSeparator + stdin[0])
|
os.Create(backend.ConfigDir + backend.PathSeparator + "devices" + backend.PathSeparator + stdin[0])
|
||||||
// print EntryRoot and bool indicating OS type to stdout for client to store in config
|
// print EntryRoot and bool indicating OS type to stdout for client to store in config
|
||||||
fmt.Print(backend.EntryRoot + "\x1f" + strconv.FormatBool(backend.IsWindows))
|
fmt.Print(backend.EntryRoot + "\x1e" + strconv.FormatBool(backend.IsWindows))
|
||||||
case "init":
|
case "init":
|
||||||
// create the necessary directories for libmuttonserver to function
|
// create the necessary directories for libmuttonserver to function
|
||||||
backend.DirInit(false)
|
backend.DirInit(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user