Skip to content

Commit

Permalink
[Fix] Rename JSPerfLspConfig to HtmxLspConfig (#41)
Browse files Browse the repository at this point in the history
- JSPerfLspConfig -> HtmxLspConfig
- no need for clap name
  • Loading branch information
alljokecake authored Jan 22, 2024
1 parent 8f05662 commit 17ffbcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ use clap::Parser;
use log::trace;
use structured_logger::{json::new_writer, Builder};

use opts::JSPerfLspConfig;
use opts::HtmxLspConfig;

use htmx_lsp_server::start_lsp;

fn main() -> Result<()> {
let config = JSPerfLspConfig::parse();
let config = HtmxLspConfig::parse();

let mut builder = Builder::with_level(&config.level);

Expand Down
4 changes: 2 additions & 2 deletions src/opts.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use clap::Parser;

#[derive(Parser, Debug)]
#[clap(name = "waxwing-lsp")]
pub struct JSPerfLspConfig {
#[clap()]
pub struct HtmxLspConfig {
/// The file to pipe logs out to
#[clap(short, long)]
pub file: Option<String>,
Expand Down

0 comments on commit 17ffbcd

Please sign in to comment.