This commit is contained in:
2026-03-19 15:00:10 +00:00
commit b7987248c1
7 changed files with 835 additions and 0 deletions

24
main.go Normal file
View File

@@ -0,0 +1,24 @@
package main
import (
"errors"
"flag"
"fmt"
"os"
)
func main() {
configPath := flag.String("config", "/etc/samba/smb.conf", "path to smb.conf")
flag.Parse()
app := NewApp(*configPath, RealUserManager{})
if err := app.Run(); err != nil {
if errors.Is(err, ErrCancelled) {
fmt.Fprintln(os.Stderr, "cancelled")
os.Exit(1)
}
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)
}
}