From c4bd51d9bc99d5deec70a42aa246c5557b4041c5 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sun, 26 Apr 2026 15:25:50 +0500 Subject: [PATCH] Refactor Command interface to embed CommandRun for improved structure and consistency --- contract/command.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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)