Skip to content

Commit

Permalink
chore: Remove schema command
Browse files Browse the repository at this point in the history
  • Loading branch information
lquerel committed May 31, 2024
1 parent 3043bc0 commit 9df9a42
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 373 deletions.
3 changes: 0 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use crate::diagnostic::DiagnosticCommand;
use crate::registry::RegistryCommand;
use crate::schema::SchemaCommand;
use clap::{Parser, Subcommand};

/// Command line arguments.
Expand Down Expand Up @@ -36,8 +35,6 @@ pub struct Cli {
pub enum Commands {
/// Manage Semantic Convention Registry
Registry(RegistryCommand),
/// Manage Telemetry Schema
Schema(SchemaCommand),
/// Manage Diagnostic Messages
Diagnostic(DiagnosticCommand),
}
3 changes: 0 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ use weaver_forge::{OutputDirective, TemplateEngine};

use crate::cli::{Cli, Commands};
use crate::diagnostic::DEFAULT_DIAGNOSTIC_TEMPLATES;
use crate::schema::telemetry_schema;

mod cli;
mod diagnostic;
mod format;
mod registry;
mod schema;
mod util;

/// Set of parameters used to specify the diagnostic format.
Expand Down Expand Up @@ -103,7 +101,6 @@ fn main() {
fn run_command(cli: &Cli, log: impl Logger + Sync + Clone) -> ExitDirectives {
let cmd_result = match &cli.command {
Some(Commands::Registry(params)) => semconv_registry(log.clone(), params),
Some(Commands::Schema(params)) => telemetry_schema(log.clone(), params),
Some(Commands::Diagnostic(params)) => diagnostic::diagnostic(log.clone(), params),
None => {
return ExitDirectives {
Expand Down
136 changes: 0 additions & 136 deletions src/schema/json_schema.rs

This file was deleted.

60 changes: 0 additions & 60 deletions src/schema/mod.rs

This file was deleted.

Loading

0 comments on commit 9df9a42

Please sign in to comment.