v0.2.0 #3
+5
-4
@@ -1,11 +1,12 @@
|
|||||||
package contract
|
package contract
|
||||||
|
|
||||||
// Run is a function that executes nft command.
|
type CommandRun interface {
|
||||||
type Run func(arg ...string) error
|
// Run executes nft command.
|
||||||
|
Run(arg ...string) error
|
||||||
|
}
|
||||||
|
|
||||||
type Command interface {
|
type Command interface {
|
||||||
// Run nft command.
|
CommandRun
|
||||||
Run(arg ...string) error
|
|
||||||
|
|
||||||
// RunWithOutput Run nft command with output.
|
// RunWithOutput Run nft command with output.
|
||||||
RunWithOutput(arg ...string) (string, error)
|
RunWithOutput(arg ...string) (string, error)
|
||||||
|
|||||||
Reference in New Issue
Block a user