/// <summary> /// Processes the record. /// </summary> protected override void ProcessRecord() { // Globals.Debug |= !string.IsNullOrEmpty(Dump); var path = SessionState.Path.CurrentLocation.Path; path = System.IO.Path.Combine(path, Path); var spots = PlanClient.LoadPlan(path); foreach (var spot in spots) { WriteObject(spot); } }
public List <Spot> Load(string file) { return(PlanClient.LoadPlan(file)); }