// retrieves ssh-directory and ssh-config-name. func sshDirConfig(c *cli.Context) (sshDir string, sshConfig string) { sshDir = config.TildeToHome(c.GlobalString("cs")) log.ErrFatal(mkdir(sshDir, 0700)) sshConfig = sshDir + "/config" return }
// Returns the config-file from the configuration func getConfig(c *cli.Context) string { configDir := config.TildeToHome(c.GlobalString("config")) log.ErrFatal(mkdir(configDir, 0770)) return configDir + "/config.bin" }