Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants