fabric-samples/full-stack-asset-transfer-guide/applications/trader-go/commands/commands.go
nXtCyberNet cf7aa047c4 refactor the commands
Signed-off-by: nXtCyberNet <rohantech2005@gmail.com>
2026-06-10 21:22:59 +05:30

15 lines
378 B
Go

package commands
import "github.com/hyperledger/fabric-gateway/pkg/client"
type Command func(gw *client.Gateway, args []string) error
var Commands = map[string]Command{
"create": cmdCreate,
"delete": cmdDelete,
"getAllAssets": cmdGetAllAssets,
"listen": cmdListen,
"read": cmdRead,
"transact": cmdTransact,
"transfer": cmdTransfer,
}