Skip to content

Commit 5ccdbd6

Browse files
StevenTCrameropencode
andcommitted
refactor(samples): Use concrete TimeWarpTerminal type instead of ITerminal interface
Simplifies sample code by using the concrete terminal type directly, making the API more discoverable and reducing abstraction overhead in demonstration code. 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai>
1 parent 48e3516 commit 5ccdbd6

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

samples/hyperlink-widget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using TimeWarp.Terminal;
77

88
// Get a terminal instance
9-
ITerminal terminal = TimeWarpTerminal.Default;
9+
TimeWarpTerminal terminal = TimeWarpTerminal.Default;
1010

1111
terminal
1212
.WriteLine()

samples/panel-widget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using TimeWarp.Terminal;
77

88
// Get a terminal instance
9-
ITerminal terminal = TimeWarpTerminal.Default;
9+
TimeWarpTerminal terminal = TimeWarpTerminal.Default;
1010

1111
terminal
1212
.WriteLine()

samples/rule-widget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using TimeWarp.Terminal;
77

88
// Get a terminal instance
9-
ITerminal terminal = TimeWarpTerminal.Default;
9+
TimeWarpTerminal terminal = TimeWarpTerminal.Default;
1010

1111
terminal
1212
.WriteLine()

samples/table-widget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using TimeWarp.Terminal;
66

77
// Create a terminal for colored output
8-
ITerminal terminal = new TimeWarpTerminal();
8+
TimeWarpTerminal terminal = new();
99

1010
terminal
1111
.WriteLine("Table Widget Demo")

0 commit comments

Comments
 (0)