Skip to content

Commit

Permalink
fix(prover_cli): Remove congif file check (#2695)
Browse files Browse the repository at this point in the history
This is a temporary fix to allow the CLI binary to be used directly
without having the repository cloned.

Note: The 'config' command does not work when used this way, and you are
required to specify the database URL each time you use the CLI, as the
config does not persist.

A more reliable solution is being worked on, but in the meantime, it was
necessary to use it this way.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
  • Loading branch information
ColoCarletti authored Aug 20, 2024
1 parent 0d77588 commit 2f456f0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions prover/crates/bin/prover_cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
use clap::Parser;
use prover_cli::{cli::ProverCLI, config};
use prover_cli::cli::ProverCLI;

#[tokio::main]
async fn main() {
tracing_subscriber::fmt()
.with_max_level(tracing::Level::ERROR)
.init();

config::get_envfile()
.and_then(config::load_envfile)
.inspect_err(|err| {
tracing::error!("{err:?}");
std::process::exit(1);
})
.unwrap();

let prover = ProverCLI::parse();

match prover.start().await {
Expand Down

0 comments on commit 2f456f0

Please sign in to comment.