tree-sitter-stack-graphs-java 0.2.0

Stack graphs for the Java programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::Parser;
use tree_sitter_stack_graphs::cli::provided_languages::Subcommands;
use tree_sitter_stack_graphs::NoCancellation;

fn main() -> anyhow::Result<()> {
    let cli = Cli::parse();
    cli.subcommand
        .run(vec![tree_sitter_stack_graphs_java::language_configuration(
            &NoCancellation,
        )])
}

#[derive(Parser)]
#[clap(about, version)]
pub struct Cli {
    #[clap(subcommand)]
    subcommand: Subcommands,
}