out-of-cheese-error / gooseberry

A command line utility to generate a knowledge base from Hypothesis annotations
Apache License 2.0
153 stars 9 forks source link

Set the kb_dir somewhere more accessible to the user #8

Closed Ninjani closed 4 years ago

Ninjani commented 4 years ago

The directory with mdbook files is currently automatically set using directories-next. This would make more sense if it was in a more user-accessible location. This could be done the same way as the hypothesis_name and hypothesis_key are set, i.e with an input prompt where the user can enter a directory (see request_credentials in gooseberry/configuration.rs). Would need to check that the directory path is valid and doesn't already exist. Also would make sense to suggest some default directory here, maybe in $HOME.