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

Add sim-only deprecation notice #1634

Merged
merged 9 commits into from
Oct 10, 2024
Merged

Add sim-only deprecation notice #1634

merged 9 commits into from
Oct 10, 2024

Conversation

Ifropc
Copy link
Contributor

@Ifropc Ifropc commented Sep 27, 2024

What

Added following notice when running a command with deprecated flag:

⚠️ --sim-only is deprecated and will be removed in the future versions of CLI. The same functionality is offered by `tx simulate` command. To replicate the behaviour, you can run `stellar <command> --build only | stellar tx simulate`

Why

#1547

As the first step, we should add deprecation notice so people have time to migrate off this flag. In the next major release we can remove it.

Known limitations

Added marco needs to include proper use, see the doc

@Ifropc Ifropc marked this pull request as draft September 27, 2024 21:55
@Ifropc Ifropc force-pushed the sim-only-deprecation branch from 7fa44b4 to 11b4a37 Compare September 27, 2024 21:59
@Ifropc Ifropc force-pushed the sim-only-deprecation branch from 11b4a37 to 641f26f Compare September 27, 2024 22:03
@Ifropc Ifropc marked this pull request as ready for review September 27, 2024 22:18
@willemneal willemneal enabled auto-merge (squash) October 7, 2024 14:01
/// Mark argument as deprecated with warning to be printed when it's used. Note: marco is only
/// supported for `bool` and `String` and is required to add
/// ```
/// use clap::builder::TypedValueParser;
Copy link
Member

Choose a reason for hiding this comment

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

Which function call requires this type? We can instead reference the type using the generic as syntax.

Copy link
Member

Choose a reason for hiding this comment

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

I pushed 3e143cf that removes the need for the use. Have a look at the syntax.

cmd/soroban-cli/src/fee.rs Outdated Show resolved Hide resolved
@willemneal willemneal merged commit 9880ad6 into main Oct 10, 2024
24 checks passed
@willemneal willemneal deleted the sim-only-deprecation branch October 10, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants