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

Wu22e save rpc addr to context #647

Merged
merged 20 commits into from
Oct 1, 2023
Merged

Conversation

hackerwins
Copy link
Member

@hackerwins hackerwins commented Oct 1, 2023

What this PR does / why we need it:

This is a PR for revising the codes included in #592.

This commit introduces context commands to the CLI, making it easier
to use CLI commands. When users log in to the Yorkie server, the
system now stores their context in the ~/.yorkie/config.json file.

This means that after logging in, users no longer need to specify the
rpcAddr parameter in each command, as the commands will automatically
retrieve the necessary authentication information from the config file.

Which issue(s) this PR fixes:

Fixes #544

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation:


Checklist:

  • Added relevant tests or not required
  • Didn't break anything

@hackerwins hackerwins force-pushed the Wu22e-save-rpc-addr-to-context branch 2 times, most recently from 78b551e to ce09f17 Compare October 1, 2023 01:45
@codecov
Copy link

codecov bot commented Oct 1, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (b241880) 49.38% compared to head (ce09f17) 49.38%.

❗ Current head ce09f17 differs from pull request most recent head 8db114a. Consider uploading reports for the commit 8db114a to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #647   +/-   ##
=======================================
  Coverage   49.38%   49.38%           
=======================================
  Files          69       69           
  Lines        9964     9964           
=======================================
  Hits         4921     4921           
  Misses       4523     4523           
  Partials      520      520           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hackerwins hackerwins force-pushed the Wu22e-save-rpc-addr-to-context branch from ce09f17 to 8db114a Compare October 1, 2023 10:17
@hackerwins hackerwins merged commit e5ee72c into main Oct 1, 2023
2 checks passed
@hackerwins hackerwins deleted the Wu22e-save-rpc-addr-to-context branch October 1, 2023 10:23
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.

Simplify CLI commands by saving rpc-addr and project to context
7 participants