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 }
func CreateServiceCommand(c *cli.Context) *ServiceCommand { goarken.SetDomainPrefix(c.GlobalString("domainDir")) goarken.SetServicePrefix(c.GlobalString("serviceDir")) return &ServiceCommand{ Client: CreateEtcdClientFromCli(c), Cli: c, } }