Skip to content

Commit bf85a4c

Browse files
committed
feat: add clap to add -V and -h args
1 parent 20e7629 commit bf85a4c

File tree

3 files changed

+184
-15
lines changed

3 files changed

+184
-15
lines changed

Cargo.lock

Lines changed: 170 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
[package]
22
name = "sysdig-lsp"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2024"
5-
5+
authors = [ "Sysdig Inc." ]
6+
readme = "README.md"
7+
description = "LSP implementation that integrates vulnerability and IaC scanning directly into your editor"
8+
repository = "https://github.com/sysdiglabs/sysdig-lsp"
9+
license = "Apache-2.0"
10+
publish = false # We don't want to publish it to crates.io yet.
611

712
[dependencies]
813
async-trait = "0.1.85"
914
chrono = { version = "0.4.40", features = ["serde"] }
15+
clap = { version = "4.5.34", features = ["derive"] }
1016
dirs = "6.0.0"
1117
itertools = "0.14.0"
1218
regex = "1.11.1"

src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
use clap::Parser;
12
use sysdig_lsp::{app::LSPServer, infra::lsp_logger::LSPLogger};
23
use tower_lsp::{LspService, Server};
34
use tracing_subscriber::layer::SubscriberExt;
45

6+
#[derive(Parser, Debug)]
7+
#[command(version, author, about, long_about)]
8+
struct Args {}
9+
510
#[tokio::main]
611
async fn main() {
12+
let _ = Args::parse();
713
let stdin = tokio::io::stdin();
814
let stdout = tokio::io::stdout();
915

0 commit comments

Comments
 (0)