// mmc -- Mattermost client
-// Copyright (C) 2023 Sergey Matveev <stargrave@stargrave.org>
+// Copyright (C) 2023-2024 Sergey Matveev <stargrave@stargrave.org>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
"github.com/mattermost/mattermost-server/v6/model"
"go.cypherpunks.ru/recfile"
+ "go.cypherpunks.ru/netrc"
"go.stargrave.org/mmc"
)
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)
}