mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-24 05:36:28 +00:00
Continue integrating commands to tests
This commit is contained in:
@ -1,9 +1,6 @@
|
||||
use crate::common::{args::CommonArgs, client::Client, logs::setup_logs};
|
||||
use cargo_metadata::semver::Version;
|
||||
use clap::Parser;
|
||||
use serde::Deserialize;
|
||||
|
||||
use crate::common::command::Command;
|
||||
use crate::common::{args::CommonArgs, client::Client, logs::setup_logs};
|
||||
|
||||
mod workload;
|
||||
|
||||
@ -19,13 +16,6 @@ pub struct TestDeriveArgs {
|
||||
initial_version: Version,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum CommandOrUpgrade {
|
||||
Command(Command),
|
||||
Upgrade { upgrade: Version },
|
||||
}
|
||||
|
||||
pub fn run(args: TestDeriveArgs) -> anyhow::Result<()> {
|
||||
setup_logs(&args.common.log_filter)?;
|
||||
|
||||
|
Reference in New Issue
Block a user