Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
Add docs onto command
Browse files Browse the repository at this point in the history
  • Loading branch information
ianoc authored and ianoc-stripe committed Oct 16, 2020
1 parent a1ecdb8 commit bcf22b4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/jvm_indexer/jvm_indexer_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,31 @@ use tokio::sync::{broadcast, Mutex};
#[derive(Clap, Debug)]
#[clap(name = "basic")]
struct Opt {
/// Optional if you have some restrictions/needs where the server bazel will connect to should bind
/// default to a random port on 127.0.0.1
#[clap(long, env = "BIND_ADDRESS")]
bind_address: Option<String>,

/// Where to find the bazel to invoke, if its just on your path `which bazel` could be passed here.
#[clap(long, parse(from_os_str))]
bazel_binary_path: PathBuf,

/// Where the output index should be stored
#[clap(long, env = "INDEX_OUTPUT_LOCATION", parse(from_os_str))]
index_output_location: PathBuf,

/// Paths to ignore for dependencies, a good value here when working with scala code is `io_bazel_rules_scala`
#[clap(long)]
blacklist_remote_roots: Vec<String>,

/// Extra rules other than the default java,scala,java proto, scala proto rules to allow jars from
#[clap(long)]
extra_allowed_rule_kinds: Option<Vec<String>>,

/// An optional bazel deps root, something like `@third_party_jvm`
/// when present we will use this root to try calculate the mapping of a bazel deps
/// to underlying raw jar. Then apply that reverse mapping so missing dependencies/the index built
/// will use the bazel deps entry rather than the raw jar.
#[clap(long)]
bazel_deps_root: Option<String>,
}
Expand Down

0 comments on commit bcf22b4

Please sign in to comment.