-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JSON, TOML output for tables (#1759)
* Headers * Global option --format * fix tables without headers * Testsuite test * Testsuite-found fixes * Bump submodules, testsuite dependencies
- Loading branch information
Showing
23 changed files
with
356 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule aaa
updated
6 files
+3 −1 | alire.toml | |
+1 −1 | config/aaa_config.ads | |
+4 −6 | config/aaa_config.gpr | |
+1 −1 | config/aaa_config.h | |
+94 −0 | src/aaa-table_io.adb | |
+17 −2 | src/aaa-table_io.ads |
Submodule den
updated
4 files
+1 −1 | alire.toml | |
+1 −1 | config/den_config.ads | |
+2 −6 | config/den_config.gpr | |
+1 −1 | config/den_config.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,33 @@ | ||
with AAA.Table_IO; | ||
|
||
package Alire.Utils.Tables with Preelaborate is | ||
with LML; | ||
|
||
type Table is new AAA.Table_IO.Table with null record; | ||
package Alire.Utils.Tables is | ||
|
||
subtype Formats is LML.Formats; | ||
|
||
Structured_Output : Boolean := False; | ||
|
||
Structured_Output_Format : Formats; | ||
|
||
subtype Parent is AAA.Table_IO.Table; | ||
|
||
type Table is new Parent with null record; | ||
|
||
overriding | ||
procedure Header (T : in out Table; Cell : String); | ||
|
||
overriding | ||
function Header (T : aliased in out Table; | ||
Cell : String) | ||
return access Table; | ||
return AAA.Table_IO.Reference; | ||
|
||
procedure Print (T : Table; | ||
Level : Trace.Levels := Info; | ||
Separator : String := " "; | ||
Align : AAA.Table_IO.Alignments := (1 .. 0 => <>)); | ||
-- Hook so tables use the default output facilities of Alire | ||
procedure Print (T : Table; | ||
Level : Trace.Levels := Info; | ||
Separator : String := " "; | ||
Align : AAA.Table_IO.Alignments := (1 .. 0 => <>); | ||
Structured : Boolean := Structured_Output); | ||
-- Hook so tables use the default output facilities of Alire. When | ||
-- Structured_Output is enabled, formatting information is ignored. | ||
|
||
end Alire.Utils.Tables; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.