Skip to content

chore(cli): add deprecation warnings to hidden global commands - #8416

Merged
dpc merged 1 commit into
fedimint:masterfrom
gabrielrondon:chore/add-deprecation-warnings-cli
Mar 25, 2026
Merged

chore(cli): add deprecation warnings to hidden global commands#8416
dpc merged 1 commit into
fedimint:masterfrom
gabrielrondon:chore/add-deprecation-warnings-cli

Conversation

@gabrielrondon

Copy link
Copy Markdown
Contributor

Summary

Add warn! deprecation messages to all hidden global CLI commands that have module or dev equivalents (introduced in #8340). Also standardize existing eprintln! warnings (deposit-address, await-deposit) to use warn!(target: LOG_CLIENT, ...) for consistency with the warnings already added in #8340 for ln-invoice and ln-pay.

Contributes to #3630.

Changes

New deprecation warnings (8 commands):

Global command Replacement
reissue module mint reissue
spend module mint spend
split module mint split
combine module mint combine
await-invoice module ln await-invoice
await-ln-pay module ln await-pay
list-gateways module ln list-gateways
withdraw module wallet withdraw

Standardized warnings (2 commands):

Global command Change
deposit-address eprintln!warn!(target: LOG_CLIENT)
await-deposit eprintln!warn!(target: LOG_CLIENT)

Dev subcommand warnings (2 commands):

Global command Replacement
config dev config
session-count dev session-count

Notes

  • No functional changes — hidden commands still work exactly as before
  • Does not migrate tests (per dpc's comment, backward-compat tests may not support the new paths yet)
  • discover-version left without warning as it has no equivalent in dev subcommand

Test plan

Add warn! deprecation messages to all hidden global CLI commands
that have module or dev equivalents after fedimint#8340. Also standardize
existing eprintln! warnings to use warn!(target: LOG_CLIENT) for
consistency.

Commands: reissue, spend, split, combine, await-invoice,
await-ln-pay, list-gateways, withdraw, deposit-address,
await-deposit, config, session-count.
@gabrielrondon
gabrielrondon requested a review from a team as a code owner March 24, 2026 15:56
@dpc
dpc added this pull request to the merge queue Mar 25, 2026
Merged via the queue into fedimint:master with commit 12e3635 Mar 25, 2026
22 of 23 checks passed
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.

2 participants