csdms / babelizer

Transform BMI-wrapped models into Python packages
https://babelizer.readthedocs.io
MIT License
4 stars 3 forks source link

Remove options for babelize generate command #91

Closed mcflugen closed 6 months ago

mcflugen commented 7 months ago

This pull requests simplifies the babelize generate command by removing all command line options and no longer prompting a user for input. Instead, it just prints a sample babelize config file for a user to edit. The options and prompts added a lot of extra code for little benefit.

mcflugen commented 6 months ago

What do you think of this @mdpiper? Are you ok with just printing out a sample config file that someone can then edit? It seemed like being able to control the contents of the config file through the command line was overkill.

mdpiper commented 6 months ago

I think it's a really good idea. All the command-line options made it a bit cumbersome. Frankly, I've just been editing old (possibly out of date) babel.toml files, so this would be an improvement for me.

mcflugen commented 6 months ago

Thanks @mdpiper. I've also renamed the command from babelize generate to babelize sample-config as that seems more descriptive of what it does.