Skip to content

git commit -m feat: added evn to CLI flags - #6

Merged
Jolah1 merged 2 commits into
mainfrom
feat/env-var-cred
Apr 12, 2026
Merged

git commit -m feat: added evn to CLI flags#6
Jolah1 merged 2 commits into
mainfrom
feat/env-var-cred

Conversation

@Jolah1

@Jolah1 Jolah1 commented Apr 12, 2026

Copy link
Copy Markdown
Owner

Closes #5

Summary

Adds environment variable support to all CLI flags so users don't need
to type credentials on every command.

Usage

export DUST_RPC_USER=user
export DUST_RPC_PASS=pass

# No credentials needed anymore
dust-cleaner scan
dust-cleaner sweep --dry-run
dust-cleaner sweep --method op-return

CLI flags still override env vars when explicitly provided.

Changes

  • Added env feature to clap in Cargo.toml
  • Added env = "DUST_RPC_*" attributes to all CLI flags in src/cli.rs

@Jolah1

Jolah1 commented Apr 12, 2026

Copy link
Copy Markdown
Owner Author

LGTM

@Jolah1
Jolah1 merged commit 084b576 into main Apr 12, 2026
3 checks passed
@Jolah1
Jolah1 deleted the feat/env-var-cred branch April 12, 2026 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Users should be able to set RPC credentials once per session, instead of passing it on every command.

1 participant