Skip to content

Commit ed278c9

Browse files
committed
Docs
1 parent 23c944c commit ed278c9

5 files changed

Lines changed: 21 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ jobs:
6464
uses: ncipollo/release-action@v1
6565
with:
6666
artifacts: "rops-amd64,rops-arm64"
67+
allowUpdates: true

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
2-
name = "rops"
3-
version = "0.4.6"
42
edition = "2024"
3+
name = "rops"
4+
version = "0.4.7"
55

66
[dependencies]
77
base64 = "0.22.1"
@@ -12,8 +12,8 @@ log = "0.4.27"
1212
rand = "0.9.2"
1313
reqwest = { version = "0.12.20", features = [
1414
"blocking",
15-
"json",
1615
"http2",
16+
"json",
1717
"rustls-tls",
1818
], default-features = false }
1919
self-replace = "1.5.0"
@@ -25,4 +25,4 @@ tar = "0.4.44"
2525
tempfile = "3.19.1"
2626
thiserror = "2.0.12"
2727
toml = "0.9.2"
28-
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
28+
tracing-subscriber = { version = "0.3.19", features = ["ansi", "env-filter"] }

readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,16 @@ curl -L https://raw.githubusercontent.com/quantmind/rops/main/dev/install-rops |
1212

1313
## Configuration
1414

15+
`rops` reads your local `.env` file if it exists, so that you can configure these environment variables:
16+
17+
* `ROPS_CONFIG`: path to the `rops.toml` configuration file (default: `rops.toml`)
18+
* `RUST_LOG`: set the log level (default: `info`)
19+
20+
To get started, you can create a `rops.toml` file in the root of your project with the following content:
21+
22+
```toml
23+
[git]
24+
default_branch = "main"
25+
```
26+
1527
1. Add a new file named `rops.toml` at the root of your project

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ mod docker;
55
mod error;
66
mod extra;
77
mod git;
8+
mod repo;
89
mod self_update;
910
mod settings;
1011
mod system;
1112
mod tools;
12-
mod repo;
1313
mod utils;
1414
use tracing_subscriber::{EnvFilter, prelude::*};
1515

@@ -39,10 +39,10 @@ enum CliArgs {
3939

4040
fn main() {
4141
dotenv::from_path(".env").ok();
42-
// Initialize logger
42+
// Initialize logger with default info level if RUST_LOG is not set
4343
tracing_subscriber::registry()
4444
.with(tracing_subscriber::fmt::layer())
45-
.with(EnvFilter::from_default_env())
45+
.with(EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")))
4646
.init();
4747
// run the application
4848
if let Err(err) = run_app() {

0 commit comments

Comments
 (0)