github.com/Cloud-Foundations/Dominator@v0.3.4/cmd/unpacker-tool/removeDevice.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "github.com/Cloud-Foundations/Dominator/imageunpacker/client" 7 "github.com/Cloud-Foundations/Dominator/lib/log" 8 ) 9 10 func removeDeviceSubcommand(args []string, logger log.DebugLogger) error { 11 if err := client.RemoveDevice(getClient(), args[0]); err != nil { 12 return fmt.Errorf("error removing device: %s", err) 13 } 14 return nil 15 }