func Init() {
	var confFilePath string
	if runtime.GOOS == "windows" {
		confFilePath = ".MrRedis"
	} else {
		confFilePath = "/tmp/.MrRedis"
	}
	f, err := os.Open(confFilePath)
	if err != nil {
		fmt.Printf("Cli is not initalized err=%v\n", err)
		fmt.Printf("$mrr init <http://MrRedisEndPoint>\n")
		return
	}
	d := make([]byte, 512)
	if c, err := f.Read(d); err != nil && c != 0 {
		fmt.Printf("Unable to read the config file err=%v\n", err)
		return
	}
	MrRedisFW = strings.Trim(string(d), "\x00")
	f.Close()
	return
}
Init simply loads the scheduler's endpoint from the .MrRedis before performing any subcommand
package main
import (
	"fmt"
	"github.com/codegangsta/cli"
	"os"
	"runtime"
	"strings"
)
var MrRedisFW string