Example #1
0
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
}
Example #2
0
func CreateServiceCommand(c *cli.Context) *ServiceCommand {

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

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

}