public virtual Layer MakeLayer() { var layerParams = Args.GetLayerParams(); var osParam = Args.GetOsParam(); var list = new List<Slice>(); var dirList = new SliceDirectoryList(Args.SlicesDir); dirList.ForEach(dir => list.AddRange(dir.FindByOs(osParam))); var layers = new LayerList(list); var layer = layers.FindLayer(layerParams[0]); //todo: check layer found and has good dependencies return layer; }
public virtual Layer MakeLayer() { var layerParams = Args.GetLayerParams(); var osParam = Args.GetOsParam(); var list = new List <Slice>(); var dirList = new SliceDirectoryList(Args.SlicesDir); dirList.ForEach(dir => list.AddRange(dir.FindByOs(osParam))); var layers = new LayerList(list); var layer = layers.FindLayer(layerParams[0]); //todo: check layer found and has good dependencies return(layer); }
/// <summary> /// Finds all versions of requested layers for specific OS and lists them. /// </summary> void ICommand.Run() { var layerParams = Args.GetLayerParams(); var osParam = Args.GetOsParam(); var list = new List<Slice>(); var dirList = new SliceDirectoryList(Args.SlicesDir); dirList.ForEach(dir => list.AddRange(dir.FindByOs(osParam))); var layers = new LayerList(list).FindLayers(layerParams); foreach (var layer in layers) { Console.WriteLine(layer.Name); } }
/// <summary> /// Finds all versions of requested layers for specific OS and lists them. /// </summary> void ICommand.Run() { var layerParams = Args.GetLayerParams(); var osParam = Args.GetOsParam(); var list = new List <Slice>(); var dirList = new SliceDirectoryList(Args.SlicesDir); dirList.ForEach(dir => list.AddRange(dir.FindByOs(osParam))); var layers = new LayerList(list).FindLayers(layerParams); foreach (var layer in layers) { Console.WriteLine(layer.Name); } }