func runPut(config davconf.Config, args []string) error {
	factory := NewFactory()
	factory.SetConfig(config)

	cmd, err := factory.Create("put")
	Expect(err).ToNot(HaveOccurred())

	return cmd.Run(args)
}
Beispiel #2
0
func runPut(config davconf.Config, args []string) (err error) {
	factory := NewFactory()
	factory.SetConfig(config)
	cmd, _ := factory.Create("put")
	return cmd.Run(args)
}