static bool DeleteService(IList<string> unparsed) { if (unparsed.Count != 1) { Console.Error.WriteLine("Usage: vmc delete-service <servicename>"); // TODO usage statement standardization return false; } string svcname = unparsed[0]; IVcapClient vc = new VcapClient(); VcapClientResult rslt = vc.DeleteService(svcname); return rslt.Success; }
static bool DeleteService(IList <string> unparsed) { if (unparsed.Count != 1) { Console.Error.WriteLine("Usage: vmc delete-service <servicename>"); return(false); } string svcname = unparsed[0]; IVcapClient vc = new VcapClient(); VcapClientResult rslt = vc.DeleteService(svcname); return(rslt.Success); }