cmd/workload: move filter commands up one level

This commit is contained in:
Felix Lange 2025-02-26 13:03:11 +01:00
parent 509548977f
commit a140ef6d7c
3 changed files with 5 additions and 12 deletions

View file

@ -33,16 +33,8 @@ import (
) )
var ( var (
filterCommand = &cli.Command{ filterGenerateCommand = &cli.Command{
Name: "filter", Name: "filtergen",
Usage: "Log filter workload test commands",
Subcommands: []*cli.Command{
filterGenCommand,
filterPerfCommand,
},
}
filterGenCommand = &cli.Command{
Name: "generate",
Usage: "Generates query set for log filter workload test", Usage: "Generates query set for log filter workload test",
ArgsUsage: "<RPC endpoint URL>", ArgsUsage: "<RPC endpoint URL>",
Action: filterGenCmd, Action: filterGenCmd,

View file

@ -28,7 +28,7 @@ import (
var ( var (
filterPerfCommand = &cli.Command{ filterPerfCommand = &cli.Command{
Name: "performance", Name: "filterperf",
Usage: "Runs log filter performance test against an RPC endpoint", Usage: "Runs log filter performance test against an RPC endpoint",
ArgsUsage: "<RPC endpoint URL>", ArgsUsage: "<RPC endpoint URL>",
Action: filterPerfCmd, Action: filterPerfCmd,

View file

@ -48,7 +48,8 @@ func init() {
app.Commands = []*cli.Command{ app.Commands = []*cli.Command{
runTestCommand, runTestCommand,
historyGenerateCommand, historyGenerateCommand,
filterCommand, filterGenerateCommand,
filterPerfCommand,
} }
} }