diff --git a/contract/command.go b/contract/command.go index ec8764e..61b862f 100644 --- a/contract/command.go +++ b/contract/command.go @@ -1,11 +1,12 @@ package contract -// Run is a function that executes nft command. -type Run func(arg ...string) error +type CommandRun interface { + // Run executes nft command. + Run(arg ...string) error +} type Command interface { - // Run nft command. - Run(arg ...string) error + CommandRun // RunWithOutput Run nft command with output. RunWithOutput(arg ...string) (string, error)