agicommies / communex

alternative commune cli/sdk
MIT No Attribution
25 stars 16 forks source link

`-y` flag to bypass confirmations #52

Closed steinerkelvin closed 4 months ago

steinerkelvin commented 4 months ago

It should be a global flag implemented in the main callback, that will inject the flag value in the context in a property that's used in commands like comx balance transfer to auto-accept confirmations.

https://github.com/agicommies/communex/blob/e27c6f2a95c5541dc4e4fc17052758bbbdf4df09/src/communex/cli/root.py#L45

https://github.com/agicommies/communex/blob/e27c6f2a95c5541dc4e4fc17052758bbbdf4df09/src/communex/cli/balance.py#L126