From b36479c0aeb36c3a4062a09070a271a94b37c4da Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sun, 26 Apr 2026 15:26:15 +0500 Subject: [PATCH] Extend Batch interface with Close, Check, and MoveFile methods for enhanced functionality --- contract/batch.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/contract/batch.go b/contract/batch.go index 5a52d4e..b4a0fe3 100644 --- a/contract/batch.go +++ b/contract/batch.go @@ -23,9 +23,21 @@ type BatchBuilder interface { // Build returns a batch of commands. Build() Batch + + // Close closes the batch. + Close() error } type Batch interface { // Args returns the arguments of the batch. Args() []string + + // Check checks the validity of the batch. + Check(command Command) error + + // Close closes the batch. + Close() error + + // MoveFile moves the batch file to the specified path. + MoveFile(path string) error }