Query by name and version set, release report

This commit is contained in:
A
2018-02-20 20:50:00 +01:00
parent 1a27d522fc
commit cc3aaa2010
16 changed files with 217 additions and 16 deletions
+41
View File
@@ -0,0 +1,41 @@
with GNAT.IO; -- To keep preelaborable
package body Alire.Releases is
-----------
-- Print --
-----------
procedure Print (R : Release) is
use GNAT.IO;
begin
-- MILESTONE
Put_Line (R.Milestone_Image & ": " & R.Description);
-- ORIGIN
Put_Line ("Origin: " & R.Origin.Image);
-- REQUISITES
if not R.Reqs.Is_Empty then
Put ("Requisites: ");
R.Reqs.Print_Skeleton;
end if;
-- PROPERTIES
if not R.Props.Is_Empty then
Put_Line ("Properties:");
for Prop of R.Props loop
Put_Line (" " & Prop.Image);
end loop;
end if;
-- DEPENDENCIES
if not R.Depends.Is_Empty then
Put_Line ("Dependencies (direct):");
for Dep of R.Depends loop
Put_Line (" " & Dep.Image);
end loop;
end if;
end Print;
end Alire.Releases;