v0.2.0 #3
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user