Files
hakurei/cmd/sharefs/main.go
Ophestra d597592e1f cmd/sharefs: rename fuse-helper to fuse-operations
This is not really just library wrapper functions, but instead implements the callbacks, so fuse-operations makes more sense.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2025-12-26 03:19:32 +09:00

28 lines
510 B
Go

package main
import (
"log"
"os"
"path"
"runtime"
)
// executableName is the [path.Base] name of the executable that started the current process.
var executableName = func() string {
if len(os.Args) > 0 {
return path.Base(os.Args[0])
} else if name, err := os.Executable(); err != nil {
return "sharefs"
} else {
return path.Base(name)
}
}()
func main() {
runtime.LockOSThread()
log.SetFlags(0)
log.SetPrefix(executableName + ": ")
os.Exit(_main(len(os.Args), copyStrings(os.Args...)))
}