예제 #1
0
파일: commands.go 프로젝트: tiry/arkenctl
func NewDomainCommand(c *cli.Context) *DomainCommand {
	goarken.SetDomainPrefix(c.GlobalString("domainDir"))
	goarken.SetServicePrefix(c.GlobalString("serviceDir"))

	dc := &DomainCommand{
		Client: CreateEtcdClientFromCli(c),
		Cli:    c,
	}

	return dc
}
예제 #2
0
파일: commands.go 프로젝트: tiry/arkenctl
func CreateServiceCommand(c *cli.Context) *ServiceCommand {

	goarken.SetDomainPrefix(c.GlobalString("domainDir"))
	goarken.SetServicePrefix(c.GlobalString("serviceDir"))

	return &ServiceCommand{
		Client: CreateEtcdClientFromCli(c),
		Cli:    c,
	}

}