first pass of merging in warp (doesn't build)
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
use clap::{Args, Subcommand};
|
||||
|
||||
use crate::{
|
||||
config_file::ConfigFileArgs,
|
||||
environment::{EnvironmentCreateArgs, EnvironmentUpdateArgs},
|
||||
mcp::MCPSpec,
|
||||
model::ModelArgs,
|
||||
provider::ProviderType,
|
||||
};
|
||||
use crate::config_file::ConfigFileArgs;
|
||||
use crate::environment::{EnvironmentCreateArgs, EnvironmentUpdateArgs};
|
||||
use crate::mcp::MCPSpec;
|
||||
use crate::model::ModelArgs;
|
||||
use crate::provider::ProviderType;
|
||||
|
||||
/// Integration-related subcommands.
|
||||
#[derive(Debug, Clone, Subcommand)]
|
||||
@@ -20,6 +18,16 @@ pub enum IntegrationCommand {
|
||||
List,
|
||||
}
|
||||
|
||||
impl IntegrationCommand {
|
||||
pub(crate) fn as_str_for_tracing(&self) -> &'static str {
|
||||
match self {
|
||||
IntegrationCommand::Create(_) => "integration create",
|
||||
IntegrationCommand::Update(_) => "integration update",
|
||||
IntegrationCommand::List => "integration list",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Args)]
|
||||
pub struct CreateIntegrationArgs {
|
||||
/// Provider to create the integration for.
|
||||
|
||||
Reference in New Issue
Block a user