)
func main() {
- entrypoint := flag.String("entrypoint", "mm.rnd.stcnet.ru", "Entrypoint")
+ entrypoint := flag.String("entrypoint", mmc.GetEntrypoint(), "Entrypoint")
flag.Parse()
log.SetFlags(log.Lshortfile)
}
func main() {
- entrypoint := flag.String("entrypoint", "mm.rnd.stcnet.ru", "Entrypoint")
+ entrypoint := flag.String("entrypoint", mmc.GetEntrypoint(), "Entrypoint")
notifyCmd := flag.String("notify", "cmd/notify", "Path to notification handler")
heartbeatCh := flag.String("heartbeat-ch", "town-square", "Channel for heartbeating")
flag.Parse()
const PerPage = 100
func main() {
- entrypoint := flag.String("entrypoint", "mm.rnd.stcnet.ru", "Entrypoint")
+ entrypoint := flag.String("entrypoint", mmc.GetEntrypoint(), "Entrypoint")
pageNum := flag.Int("page", 0, "Page number")
direct := flag.Bool("direct", false, "Direct channel")
flag.Parse()
}
return users, nil
}
+
+func GetEntrypoint() string {
+ s := os.Getenv("MMC_ENTRYPOINT")
+ if s == "" {
+ return "mm.invalid"
+ }
+ return s
+}
@item Place your MM's credentials to @env{$NETRC} (@file{~/.netrc} by
default). For example
-@code{machine mm.example.com login stargrave@@mm.example.com password PASSWORD}.
+@code{machine mm.invalid login stargrave@@mm.invalid password PASSWORD}.
+
+@item Set @env{$MMC_ENTRYPOINT} environment variable to your entrypoint.
@item Run @command{cmd/start} and you should see started @command{tmux}
with split window and running @command{cmd/mmc}.