v0.2.0 #3
@@ -42,6 +42,10 @@ func NewBatchBuilder(dir string) (contract.BatchBuilder, error) {
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (b *batchBuilder) Command() contract.CommandRun {
|
||||||
|
return b.command
|
||||||
|
}
|
||||||
|
|
||||||
func (b *batchBuilder) Clear() error {
|
func (b *batchBuilder) Clear() error {
|
||||||
args := nftCommand.Clear()
|
args := nftCommand.Clear()
|
||||||
return b.command.Run(args...)
|
return b.command.Run(args...)
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ import (
|
|||||||
|
|
||||||
// BatchBuilder is an API for building a batch of commands.
|
// BatchBuilder is an API for building a batch of commands.
|
||||||
type BatchBuilder interface {
|
type BatchBuilder interface {
|
||||||
|
// Command returns the command to run.
|
||||||
|
Command() CommandRun
|
||||||
|
|
||||||
// Clear clears all rules.
|
// Clear clears all rules.
|
||||||
//
|
//
|
||||||
// This command is equivalent to:
|
// This command is equivalent to:
|
||||||
|
|||||||
Reference in New Issue
Block a user