I want before upgrading a canister programmatically (by
.install_code() of the management canister) possibly ask the user yes/no to upgrade where the question would be asked if and only if
dfx deploy asks this question in the same situation.
In other words, if in this upgrade
dfx deploy would ask confirmation, I also want to ask confirmation. If it does not ask, I also don’t want to ask.
The question should be the same as of
dfx deploy (like: that function changed, old one is …, new one is …).
Also, how to upgrade the Candid interface of a canister programmatically (without using