]> Sergey Matveev's repositories - mmc.git/blobdiff - cmd/sb/main.go
External netrc module
[mmc.git] / cmd / sb / main.go
index ddb29b68f44dc4c559de58d690bbee3dc2a93224..e7a4cbdd46806652048ae630ccb3cac87121d780 100644 (file)
@@ -24,6 +24,7 @@ import (
 
        "github.com/mattermost/mattermost-server/v6/model"
        "go.cypherpunks.ru/recfile"
+       "go.cypherpunks.ru/netrc"
        "go.stargrave.org/mmc"
 )
 
@@ -37,7 +38,7 @@ func main() {
 
        chId := flag.Arg(0)
        postId := flag.Arg(1)
-       login, password := mmc.FindInNetrc(*entrypoint)
+       login, password := netrc.Find(*entrypoint)
        if login == "" || password == "" {
                log.Fatalln("no credentials found for:", *entrypoint)
        }