This commit is contained in:
2025-05-31 10:32:21 -04:00
parent 49c508aae7
commit 5c7c748a69
5 changed files with 13 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ import (
*/
type Client struct {
cli *mcr.Client
cli mcr.Client
}
type IClient interface {
@@ -25,9 +25,9 @@ type IClient interface {
// creates a new mcr client using saved credentials and decrypted password
func New() (*Client, error) {
//grab saved credentials
server := viper.Get("server").(string)
password := viper.Get("password").(string)
port := viper.Get("port").(int)
server := viper.GetString("server")
password := viper.GetString("password")
port := viper.GetInt("port")
fmt.Printf("Logging into %s on port %d\n", server, port)
//decrypt password