Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

refactor(lib): client config #370

Merged
merged 2 commits into from
Oct 9, 2023
Merged

refactor(lib): client config #370

merged 2 commits into from
Oct 9, 2023

Conversation

brech1
Copy link
Member

@brech1 brech1 commented Oct 5, 2023

Description

This PR removes the ClientConfig struct from the main library. The main purpose of it was to simplify settings storage, but this is an application and not a library concern. It also had data that the library itself wasn't using.

It has been moved to the CLI crate and the Client constructor has been updated to receive the necessary data to spin up, and store in memory whatever is needed for the library methods.

Related Issues

  • Resolves #369

Changes

  • Update library tests
  • Remove ClientConfig from the library and implement CliConfig in the CLI.
  • Update cli handle function arguments

@brech1 brech1 changed the title refactor: client config refactor(lib): client config Oct 5, 2023
@brech1 brech1 force-pushed the refactor/client-config branch from 1364598 to 408125b Compare October 5, 2023 20:10
@brech1 brech1 marked this pull request as ready for review October 5, 2023 20:33
@lazovicff lazovicff merged commit 3035f14 into master Oct 9, 2023
@brech1 brech1 deleted the refactor/client-config branch October 12, 2023 15:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move Config outside Client
2 participants