Skip to content

Commit 4791473

Browse files
committed
read s3 args from env for wal shell
1 parent 158dd59 commit 4791473

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

libsql-wal/src/bins/shell/main.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,21 @@ struct Cli {
4040
"s3_bucket",
4141
"cluster_id",
4242
])]
43+
4344
struct S3Args {
4445
#[arg(long, requires = "S3Args")]
4546
enable_s3: bool,
46-
#[arg(long)]
47+
#[arg(long, env = "LIBSQL_BOTTOMLESS_DATABASE_ID")]
4748
cluster_id: Option<String>,
48-
#[arg(long)]
49+
#[arg(long, env = "LIBSQL_BOTTOMLESS_ENDPOINT")]
4950
s3_url: Option<String>,
50-
#[arg(long)]
51+
#[arg(long, env = "LIBSQL_BOTTOMLESS_AWS_SECRET_ACCESS_KEY")]
5152
s3_access_key: Option<String>,
52-
#[arg(long)]
53+
#[arg(long, env = "LIBSQL_BOTTOMLESS_AWS_ACCESS_KEY_ID")]
5354
s3_access_key_id: Option<String>,
54-
#[arg(long)]
55+
#[arg(long, env = "LIBSQL_BOTTOMLESS_BUCKET")]
5556
s3_bucket: Option<String>,
56-
#[arg(long)]
57+
#[arg(long, env = "LIBSQL_BOTTOMLESS_AWS_DEFAULT_REGION")]
5758
s3_region_id: Option<String>,
5859
}
5960

0 commit comments

Comments
 (0)