shahednasser / cross-post

Cross Post a blog to multiple websites
https://www.npmjs.com/package/cross-post-blog
MIT License
122 stars 16 forks source link

Add reset config command #22

Closed shahednasser closed 2 years ago

shahednasser commented 2 years ago

Add a command to reset the config. It can accept the name of a config or if no name provided then the entire config (with the exception of the platforms' API keys should be reset).

This can be helpful for development and testing.

HarshaVardhanNakkina commented 2 years ago

with the exception of the platforms' API keys should be reset

could you please explain this a little bit more? I want to contribute to this issue

shahednasser commented 2 years ago

There are a set of configuration that can be added (You can find them in src/commands/config.js. Keys in the configuration other than those of the API keys used to post on the different platforms should be reset to their original values (basically unset)

HarshaVardhanNakkina commented 2 years ago

I opened a pull request here #23