Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit e5be80f

Browse files
committed
Update java rust bin.rs to account for CLI updates
1 parent 5af6d51 commit e5be80f

File tree

1 file changed

+13
-4
lines changed
  • languages/tree-sitter-stack-graphs-java/rust

1 file changed

+13
-4
lines changed
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
use tree_sitter_stack_graphs::cli::LanguageConfigurationsCli as Cli;
1+
use clap::Parser;
2+
use tree_sitter_stack_graphs::cli::provided_languages::Subcommands;
23
use tree_sitter_stack_graphs::NoCancellation;
34

45
fn main() -> anyhow::Result<()> {
5-
Cli::main(vec![tree_sitter_stack_graphs_java::language_configuration(
6-
&NoCancellation,
7-
)])
6+
let cli = Cli::parse();
7+
cli.subcommand.run(vec![
8+
tree_sitter_stack_graphs_java::language_configuration(&NoCancellation),
9+
])
10+
}
11+
12+
#[derive(Parser)]
13+
#[clap(about, version)]
14+
pub struct Cli {
15+
#[clap(subcommand)]
16+
subcommand: Subcommands,
817
}

0 commit comments

Comments
 (0)