informalsystems / themis-contract

A command line-based parameterized contracting tool
Apache License 2.0
46 stars 5 forks source link

Support using persistent user configuration for most flag functionality #58

Open shonfeder opened 4 years ago

shonfeder commented 4 years ago

This is generally desirable. E.g., I don't have the default Sacramento font installed, so I have to remember to add a --font flag every time I sign. I'd like to set this once somewhere.

A lightweight approach that a lot of CLI tools I use adopt is to make make every flag option also something you can set via an envvar. E.g., I'd love to be able to just drop THEMIS_FONT=foo into my bashrc.

A config file located in the .themis/contract dir would also be OK.

thanethomson commented 4 years ago

I'll look at integrating Viper support here for Themis Contract configuration.