示例#1
0
文件: lib.go 项目: dedis/cothority
// 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
}
示例#2
0
文件: lib.go 项目: dedis/cothority
// 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"
}