Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/events #573

Merged
merged 5 commits into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ genesis/pylonsd

artifacts

cmd/pylonsd/__debug_bin
12 changes: 6 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ require (
github.com/tendermint/tendermint v0.34.14
github.com/tendermint/tm-db v0.6.4
github.com/zach-klippenstein/goregen v0.0.0-20160303162051-795b5e3961ea
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa
google.golang.org/grpc v1.43.0
google.golang.org/genproto v0.0.0-20220317150908-0efb43f6373e
google.golang.org/grpc v1.45.0
google.golang.org/protobuf v1.27.1
gopkg.in/yaml.v2 v2.4.0
)
Expand Down Expand Up @@ -68,7 +68,7 @@ require (
github.com/gogo/gateway v1.1.0 // indirect
github.com/golang/snappy v0.0.3 // indirect
github.com/google/btree v1.0.0 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/google/go-cmp v0.5.7 // indirect
github.com/google/gxui v0.0.0-20151028112939-f85e0a97b3a4 // indirect
github.com/google/orderedcode v0.0.1 // indirect
github.com/gorilla/handlers v1.5.1 // indirect
Expand Down Expand Up @@ -125,9 +125,9 @@ require (
github.com/zondax/hid v0.9.0 // indirect
go.etcd.io/bbolt v1.3.5 // indirect
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
golang.org/x/net v0.0.0-20210903162142-ad29c8ab022f // indirect
golang.org/x/sys v0.0.0-20210903071746-97244b99971b // indirect
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/text v0.3.7 // indirect
gopkg.in/ini.v1 v1.63.2 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
Expand Down
17 changes: 10 additions & 7 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
Expand Down Expand Up @@ -1236,8 +1236,9 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk=
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20210825183410-e898025ed96a/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20210903162142-ad29c8ab022f h1:w6wWR0H+nyVpbSAQbzVEIACVyr/h8l/BEkY6Sokc7Eg=
golang.org/x/net v0.0.0-20210903162142-ad29c8ab022f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
Expand Down Expand Up @@ -1344,11 +1345,13 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210903071746-97244b99971b h1:3Dq0eVHn0uaQJmPO+/aYPI/fRMqdrVDbu7MQcku54gg=
golang.org/x/sys v0.0.0-20210903071746-97244b99971b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM=
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
Expand Down Expand Up @@ -1554,8 +1557,8 @@ google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaE
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa h1:I0YcKz0I7OAhddo7ya8kMnvprhcWM045PmkBdMO9zN0=
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
google.golang.org/genproto v0.0.0-20220317150908-0efb43f6373e h1:fNKDNuUyC4WH+inqDMpfXDdfvwfYILbsX+oskGZ8hxg=
google.golang.org/genproto v0.0.0-20220317150908-0efb43f6373e/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E=
google.golang.org/grpc v1.33.2 h1:EQyQC3sa8M+p6Ulc8yy9SWSS2GVwyRc83gAbG8lrl4o=
google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
Expand Down
69 changes: 47 additions & 22 deletions proto/pylons/event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ import "pylons/payment_info.proto";
import "pylons/redeem_info.proto";

message EventBurnDebtToken {
RedeemInfo redeemInfo = 1 [(gogoproto.nullable) = false];
RedeemInfo redeemInfo = 1 [ (gogoproto.nullable) = false ];
}


message EventCreateAccount {
string address = 1;
string username = 2;
Expand All @@ -33,9 +34,10 @@ message EventCreateCookbook {
string ID = 2;
}

// EventUpdateCookbook contains a record of the cookbook pre-update. The updated fields can be found by the message emitted by MsgUpdateCookbook
// EventUpdateCookbook contains a record of the cookbook pre-update. The
// updated fields can be found by the message emitted by MsgUpdateCookbook
message EventUpdateCookbook {
Cookbook originalCookbook = 1 [(gogoproto.nullable) = false];
Cookbook originalCookbook = 1 [ (gogoproto.nullable) = false ];
}

message EventTransferCookbook {
Expand All @@ -50,28 +52,45 @@ message EventCreateRecipe {
string ID = 3;
}

// EventUpdateRecipe contains a record of the recipe pre-update. The updated fields can be found by the message emitted by MsgUpdateRecipe
// EventUpdateRecipe contains a record of the recipe pre-update. The updated
// fields can be found by the message emitted by MsgUpdateRecipe
message EventUpdateRecipe {
Recipe originalRecipe = 1 [(gogoproto.nullable) = false];
Recipe originalRecipe = 1 [ (gogoproto.nullable) = false ];
}

// EventCreateExecution contains the creator and ID of a created execution. Execution IDs are of the form {count-targetBlockHeight}
// EventCreateExecution contains the creator and ID of a created execution.
// Execution IDs are of the form {count-targetBlockHeight}
message EventCreateExecution {
string creator = 1;
string ID = 2;
repeated PaymentInfo paymentInfos = 3 [(gogoproto.nullable) = false];
repeated PaymentInfo paymentInfos = 3 [ (gogoproto.nullable) = false ];
}

message EventCompleteExecution {
string creator = 1;
string ID = 2;
repeated cosmos.base.v1beta1.Coin burnCoins = 3 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
repeated cosmos.base.v1beta1.Coin payCoins = 4 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
repeated cosmos.base.v1beta1.Coin transferCoins = 5 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
repeated cosmos.base.v1beta1.Coin feeCoins = 6 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
repeated cosmos.base.v1beta1.Coin coinOutputs = 7 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
repeated Item mintItems = 8 [(gogoproto.nullable) = false];
repeated Item modifyItems = 9 [(gogoproto.nullable) = false];
repeated cosmos.base.v1beta1.Coin burnCoins = 3 [
(gogoproto.nullable) = false,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line has been copy/pasted a lot throughout the code, more reusability would be better.

(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same with this line as well, too many copy/pastes.

];
repeated cosmos.base.v1beta1.Coin payCoins = 4 [
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
repeated cosmos.base.v1beta1.Coin transferCoins = 5 [
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
repeated cosmos.base.v1beta1.Coin feeCoins = 6 [
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
repeated cosmos.base.v1beta1.Coin coinOutputs = 7 [
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
repeated Item mintItems = 8 [ (gogoproto.nullable) = false ];
repeated Item modifyItems = 9 [ (gogoproto.nullable) = false ];
}

message EventDropExecution {
Expand All @@ -87,14 +106,15 @@ message EventCompleteExecutionEarly {
message EventSendItems {
string sender = 1;
string receiver = 2;
repeated ItemRef items = 3 [(gogoproto.nullable) = false];
repeated ItemRef items = 3 [ (gogoproto.nullable) = false ];
}

message EventSetItemString {
string creator = 1;
string CookbookID = 2;
string ID = 3;
repeated StringKeyValue originalMutableStrings = 4 [(gogoproto.nullable) = false];
repeated StringKeyValue originalMutableStrings = 4
[ (gogoproto.nullable) = false ];
}

message EventCreateTrade {
Expand All @@ -111,11 +131,17 @@ message EventFulfillTrade {
uint64 ID = 1;
string creator = 2;
string fulfiller = 3;
repeated ItemRef itemInputs = 4 [(gogoproto.nullable) = false];
repeated cosmos.base.v1beta1.Coin coinInputs = 5 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
repeated ItemRef itemOutputs = 6 [(gogoproto.nullable) = false];
repeated cosmos.base.v1beta1.Coin coinOutputs = 7 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
repeated PaymentInfo paymentInfos = 8 [(gogoproto.nullable) = false];
repeated ItemRef itemInputs = 4 [ (gogoproto.nullable) = false ];
repeated cosmos.base.v1beta1.Coin coinInputs = 5 [
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
repeated ItemRef itemOutputs = 6 [ (gogoproto.nullable) = false ];
repeated cosmos.base.v1beta1.Coin coinOutputs = 7 [
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
repeated PaymentInfo paymentInfos = 8 [ (gogoproto.nullable) = false ];
}

message EventGooglePurchase {
Expand All @@ -130,4 +156,3 @@ message EventStripePurchase {
string creator = 1;
string ID = 2;
}

21 changes: 15 additions & 6 deletions x/pylons/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"

sdk "github.com/cosmos/cosmos-sdk/types"
bank "github.com/cosmos/cosmos-sdk/x/bank/client/cli"
"github.com/stretchr/testify/require"

"github.com/Pylons-tech/pylons/x/pylons/client/cli"
Expand Down Expand Up @@ -48,12 +49,7 @@ func GenerateAddressesInKeyring(ring keyring.Keyring, n int) []sdk.AccAddress {

func GenerateAddressWithAccount(ctx client.Context, t *testing.T, net *network.Network) (string, error) {
accs := GenerateAddressesInKeyring(ctx.Keyring, 1)
common := []string{
fmt.Sprintf("--%s=%s", flags.FlagFrom, accs[0].String()),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock),
fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(net.Config.BondDenom, sdk.NewInt(10))).String()),
}
common := CommonArgs(accs[0].String(), net)

username := "user"

Expand All @@ -70,6 +66,19 @@ func GenerateAddressWithAccount(ctx client.Context, t *testing.T, net *network.N
return "", fmt.Errorf("Error Code Not Success")
}

common = CommonArgs(net.Validators[0].Address.String(), net)

args = []string{net.Validators[0].Address.String(), accs[0].String(), "1000node0token"}
args = append(args, common...)
out, err = clitestutil.ExecTestCLICmd(ctx, bank.NewSendTxCmd(), args)
if err != nil {
return "", err
}
require.NoError(t, ctx.Codec.UnmarshalJSON(out.Bytes(), &resp))
if uint32(0) != resp.Code {
return "", fmt.Errorf("Error Code Not Success")
}

return accs[0].String(), nil
}

Expand Down
4 changes: 2 additions & 2 deletions x/pylons/client/cli/easel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ func TestEaselBasic(t *testing.T) {
simInfo.basicTradePercentage, err = sdk.NewDecFromStr("0.10")
require.NoError(t, err)

simInfo.common = CommonArgs(address, net)
simInfo.executorCommon = CommonArgs(address, net)

simInfo.executorCommon = CommonArgs(val.Address.String(), net)
simInfo.common = CommonArgs(val.Address.String(), net)
createEaselCookbook(t, simInfo)
createMintRecipe1(t, simInfo)
mintNFT1(t, simInfo)
Expand Down
4 changes: 2 additions & 2 deletions x/pylons/client/cli/loud_game_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ func TestLOUDBasic(t *testing.T) {
simInfo.basicTradePercentage, err = sdk.NewDecFromStr("0.10")
require.NoError(t, err)

simInfo.common = CommonArgs(address, net)
simInfo.executorCommon = CommonArgs(val.Address.String(), net)
simInfo.executorCommon = CommonArgs(address, net)
simInfo.common = CommonArgs(val.Address.String(), net)

createLOUDCookbook(t, simInfo)
createCharacterRecipe(t, simInfo)
Expand Down
4 changes: 2 additions & 2 deletions x/pylons/client/cli/misc_execs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestSingleItemModifyOutput(t *testing.T) {
basicTradePercentage, err := sdk.NewDecFromStr("0.10")
require.NoError(t, err)

common := CommonArgs(address, net)
common := CommonArgs(val.Address.String(), net)

cookbookID := "COOKBOOK_ID"
cbFields := []string{
Expand Down Expand Up @@ -159,7 +159,7 @@ func TestSingleItemModifyOutput(t *testing.T) {

// Execute recipe and check item
// execute recipe to mint
commonExec := CommonArgs(val.Address.String(), net)
commonExec := CommonArgs(address, net)
args = []string{cookbookID, mintItemRecipeID, "0", "[]", "[]"} // empty list for item-ids since there is no item input
args = append(args, commonExec...)
out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdExecuteRecipe(), args)
Expand Down
4 changes: 2 additions & 2 deletions x/pylons/client/cli/tx_complete_execution_early_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestCmdCompleteExecutionEarly(t *testing.T) {
}

//Common arguments
common := CommonArgs(address, net)
common := CommonArgs(val.Address.String(), net)
args := []string{cookbookID}
args = append(args, cbFields...)
args = append(args, common...)
Expand Down Expand Up @@ -82,7 +82,7 @@ func TestCmdCompleteExecutionEarly(t *testing.T) {
require.NoError(t, err)

// create execution
common = CommonArgs(val.Address.String(), net)
common = CommonArgs(address, net)
args = []string{cookbookID, recipeID, "1", "[]", "[]"} // empty list for item-ids since there is no item input
args = append(args, common...)
out, err2 := clitestutil.ExecTestCLICmd(ctx, cli.CmdExecuteRecipe(), args)
Expand Down
Loading