From 554fb9000e49ad510b21f0ed1b8510a059e3461e Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sun, 28 Jul 2024 10:57:59 -0500 Subject: [PATCH] Starting interface with Taskwarrior. It may become its own repository later. --- src/MiniDocs/AcroReport.class.st | 15 +++++++++++++++ .../LeTextCoderSnippetElement.extension.st | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 src/MiniDocs/AcroReport.class.st diff --git a/src/MiniDocs/AcroReport.class.st b/src/MiniDocs/AcroReport.class.st new file mode 100644 index 0000000..683e6d1 --- /dev/null +++ b/src/MiniDocs/AcroReport.class.st @@ -0,0 +1,15 @@ +Class { + #name : #AcroReport, + #superclass : #Object, + #category : #MiniDocs +} + +{ #category : #accessing } +AcroReport class >> project: projectName [ + | jsonReport | + jsonReport := (GtSubprocessWithInMemoryOutput new + shellCommand: 'task project:', projectName , ' export'; + runAndWait; + stdout). + ^ STONJSON fromString: jsonReport +] diff --git a/src/MiniDocs/LeTextCoderSnippetElement.extension.st b/src/MiniDocs/LeTextCoderSnippetElement.extension.st index eb6f4ca..4de9413 100644 --- a/src/MiniDocs/LeTextCoderSnippetElement.extension.st +++ b/src/MiniDocs/LeTextCoderSnippetElement.extension.st @@ -15,6 +15,11 @@ LeTextCoderSnippetElement >> asLePage [ ^ newPage ] +{ #category : #'*MiniDocs' } +LeTextCoderSnippetElement >> asSnippetViewModel [ + ^ self snippetContent +] + { #category : #'*MiniDocs' } LeTextCoderSnippetElement >> moveToPageTitled: pageName [ | db origin destination |