tarazed 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c41400c6ac1b8380eac0eaebe756d80425c06b4273f709e8902467276d622d80
4
- data.tar.gz: 1a859372283bf896d16bacfd9b444ed02ad891279cdd0315cc8d072d8d7852f9
3
+ metadata.gz: 233b24e764e297bf6546e5c68452f4050f011b022c7300bdd0be3c7e36709069
4
+ data.tar.gz: b188674da5a0ef96029c2a22a4b708bfc195ae4b7860fb13c117469ef2342600
5
5
  SHA512:
6
- metadata.gz: 3f007338660554ed33a141db5cf1b2fe4143837828cb5dbe723e083c4f9eba82d45593eef7c8c6ba3083a67150da1353515b34a9ff055a195e50cce788b83b5a
7
- data.tar.gz: 912b5f4857e5cb99296ecfb7666eaeeb3c853397af6b8df1a94233f79c4aac3c0c9a3f5deb035d0f86d15ff260daaaa47ffddfb530da71f1eb36eb136f096191
6
+ metadata.gz: 6f127d20234ebb1d5114afdf97c7b71c02826e55f734c9619cc03629651ebcbe6466c9b5677f2c45ec7f80dcea763b2d0b9f43513e22f37ed98b66ebbb260b60
7
+ data.tar.gz: 1bca1ddcbe7456c40e82e9db0a1edd2328b8c8e8f11772196c0295907f71b1b96d696eaae5e3c513dbdce48b355a44d71fa8dd1e7766aeb5595718fbd61c9b59
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.2.4 - 2026-09-18
6
+
7
+ - Add an API to clear completed and in-progress command history.
8
+
5
9
  ## 0.2.3 - 2026-09-18
6
10
 
7
11
  - Report the executable basename from string commands that include arguments.
@@ -10,6 +10,10 @@ module Tarazed
10
10
 
11
11
  def screen = grid
12
12
  def commands = vt.commands
13
+ def clear_commands
14
+ vt.clear_commands
15
+ self
16
+ end
13
17
  def cwd = vt.cwd || initial_cwd
14
18
  def input(bytes) = write(bytes)
15
19
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tarazed
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
5
5
  end
data/lib/tarazed/vt.rb CHANGED
@@ -33,6 +33,11 @@ module Tarazed
33
33
  end
34
34
 
35
35
  def commands = @commands.dup.freeze
36
+ def clear_commands
37
+ @commands.clear
38
+ @pending_command = nil
39
+ self
40
+ end
36
41
 
37
42
  # The parser retains incomplete UTF-8 and control sequences between reads.
38
43
  def feed(bytes)
data/sig/tarazed.rbs CHANGED
@@ -125,6 +125,7 @@ module Tarazed
125
125
 
126
126
  def initialize: (?Grid grid, ?command_limit: Integer, ?on_command: ^(Command) -> untyped) ?{ (String) -> void } -> void
127
127
  def commands: () -> Array[Command]
128
+ def clear_commands: () -> self
128
129
  def feed: (String bytes) -> self
129
130
  def paste: (String text) -> String
130
131
  def mouse: (button: Symbol | Integer | nil, column: Integer, row: Integer, ?action: mouse_action,
@@ -173,6 +174,7 @@ module Tarazed
173
174
  ?queue_limit_bytes: Integer, ?on_command: ^(Command) -> untyped) -> void
174
175
  def screen: () -> Grid
175
176
  def commands: () -> Array[Command]
177
+ def clear_commands: () -> self
176
178
  def cwd: () -> String
177
179
  def input: (String bytes) -> Integer
178
180
  def pump: (?timeout: Numeric) -> bool
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarazed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yudai Takada