Store CLI version in ledger JSON file and error if it is different to current

Open
#218 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
cli

Research direction

Start by locating the CLI's ledger JSON read and write entry points, then trace where the current CLI version is available. Define the version mismatch error, including guidance to delete the ledger file manually; completion should preserve the file rather than delete it automatically and report mismatches clearly.

Written by the indexing model from the issue text.

Description

We could store CLI version in ledger JSON file and error if it is different to current with a cheese message about what is wrong and to delete the file manually.

We could also consider automatically deleting it, but that might be surprising and given it's a destructive action that might not be the right thing to do from the users pov.

Idea suggested by @paulbellamy at https://stellarfoundation.slack.com/archives/C030Z9EHVQE/p1665688031594229?thread_ts=1665676801.615819&cid=C030Z9EHVQE

Dominant language
Rust
Stars
123
Forks
141
Avg merge
2d 21h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stellar/stellar-cli

All issues in stellar/stellar-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.