Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

refactor(token/cli): extract duplicate config loading logic #7638

Closed
wants to merge 1 commit into from

Conversation

dylankyc
Copy link

@dylankyc dylankyc commented Jan 9, 2025

Extract duplicated config loading code into a new get_cli_config function to improve code maintainability and reduce duplication. The function handles loading config from file path or default locations.

  • Move common config loading logic into standalone function
  • Update new() and new_with_clients_and_ws_url to use shared function
  • No functional changes

Extract duplicated config loading code into a new `get_cli_config` function to
improve code maintainability and reduce duplication. The function handles loading
config from file path or default locations.

- Move common config loading logic into standalone function
- Update new() and new_with_clients_and_ws_url to use shared function
- No functional changes
@mergify mergify bot added the community Community contribution label Jan 9, 2025
@dylankyc
Copy link
Author

@joncinque Can you please review this PR? Thanks

Copy link
Contributor

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me, thanks!

@joncinque
Copy link
Contributor

Sorry, this repo is about to get archived -- I'll be putting up the official announcement in the repo later today.

In the meantime, the token-cli has continued development at https://github.com/solana-program/token-2022/tree/main/clients/cli -- can you remake your PR over there?

@github-actions github-actions bot added the stale [bot only] Added to stale content; will be closed soon label Feb 27, 2025
@github-actions github-actions bot closed this Mar 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution stale [bot only] Added to stale content; will be closed soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants