]> Untitled Git - bdk-cli/commit
Refactor(handlers): Define app context states
authorVihiga Tyonum <withtvpeter@gmail.com>
Fri, 29 May 2026 03:17:56 +0000 (04:17 +0100)
committerVihiga Tyonum <withtvpeter@gmail.com>
Fri, 5 Jun 2026 16:32:14 +0000 (17:32 +0100)
commitf3deed85868f15f9b97355d1680d2df6d1432120
tree8e8e32e1ce9a4932624d6c4cbf0e045e153bb6b6
parent5ced5aa764407d0b117b43ddeb6a9addfa15c8ed
Refactor(handlers): Define app context states

- Define Init state for when an execution does
not need either the wallet or client for execution
- Define the Offline wallet operations state
for app context when an execution envt needs
 a wallet
- Define the online wallet operations state for
appcontext when an execution needs both the
wallet and client
- make app context generic over the state
- make the app command and async app command
generic over the execution context
- deleted shorten fn as it was applicable to the
pretty flag
- removed tests for pretty flag
src/client.rs
src/handlers/mod.rs
src/main.rs
src/utils/common.rs
src/utils/types.rs
tests/cli_flags.rs