Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load default configuration into env vars. #1716

Merged
merged 2 commits into from
Nov 7, 2024
Merged

Conversation

fnando
Copy link
Member

@fnando fnando commented Nov 7, 2024

What

Load default config defaults (~/.config/stellar/config.toml) into env vars.

$ stellar keys use alice
ℹ️ The default source account is set to `alice`

$ stellar network use testnet
ℹ️ The default network is set to `testnet`

$ stellar env
STELLAR_ACCOUNT=alice   # use
STELLAR_NETWORK=testnet # use

$ STELLAR_NETWORK=futurenet stellar env
STELLAR_ACCOUNT=alice     # use
STELLAR_NETWORK=futurenet # env

$ STELLAR_NETWORK_SOURCE=what STELLAR_NETWORK=futurenet stellar env
STELLAR_ACCOUNT=alice     # use
STELLAR_NETWORK=futurenet # env

Why

So we can use the values set by stellar network use and stellar keys use.

Known limitations

N/A

@fnando fnando requested a review from leighmcculloch November 7, 2024 23:11
@fnando fnando enabled auto-merge (squash) November 7, 2024 23:19
@fnando fnando merged commit 61550ec into main Nov 7, 2024
28 of 30 checks passed
@fnando fnando deleted the load-config-as-env-vars branch November 7, 2024 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants