dennisvang / tufup

Automated updates for stand-alone Python applications.
MIT License
71 stars 1 forks source link

add silent initialization option #143

Open dennisvang opened 1 month ago

dennisvang commented 1 month ago

Initializing a repo from an existing .tufup-repo-config file is possible using the command line or api, but this may require user intervention (e.g. confirmation for directory creation).

For CI/CD workflows, it would be convenient to have a 'silent' initialization option for the CLI and API, which does not ask for user confirmation.

For example:

tufup init --silent

or

from tufup.repo import Repository
Repository.from_config().initialize(silent=True)

Note this will require some thought with regard to handling key-pair creation with passwords.