From 2dc7e0a0e46c526566382ef8ef47493099a95b40 Mon Sep 17 00:00:00 2001
From: Alexander Gehrke <github@qwertyuiop.de>
Date: Sat, 18 May 2024 14:30:05 +0200
Subject: [PATCH] Add untyped command wrapper

---
 copret/src/slides.scala | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/copret/src/slides.scala b/copret/src/slides.scala
index eaa2557..d7eaef6 100644
--- a/copret/src/slides.scala
+++ b/copret/src/slides.scala
@@ -227,6 +227,10 @@ object TypedCommand:
   def interactive(cmd: String*)(using Path): TypedCommand[Vector[String]] =
     TypedCommand(runInteractive, cmd.mkString(" "), cmd.toVector)
 
+  def untyped(cmd: String*)(using Path): TypedCommand[Vector[String]] =
+    TypedCommand(exec = run, display = "", cmd.toVector, cmdIsHidden = true, outputIsHidden = false)
+end TypedCommand
+
 sealed abstract case class Silent[T] private (doStuff: () => T) extends Slide
 object Silent:
   def apply[T](doStuff: => T) = new Silent(() => doStuff) {}