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 }