Skip to content

Commit

Permalink
feat: make schema command public
Browse files Browse the repository at this point in the history
This is needed for allowing the CLI to write the schema for VScode and other editors which support json schema.
  • Loading branch information
willemneal committed Feb 6, 2025
1 parent 0a95b1f commit 8f6cdb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub mod list;
mod schema;
pub mod schema;

use clap::{Args, Subcommand};

Expand Down
2 changes: 2 additions & 0 deletions src/cli/types/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ macro_rules! run_x {
}

impl Cmd {
/// # Errors
/// Fails if the type is unknown or if the JSON generation fails.
pub fn run(&self, channel: &Channel) -> Result<(), Error> {
match channel {
Channel::Curr => self.run_curr()?,
Expand Down

0 comments on commit 8f6cdb1

Please sign in to comment.