writeas / writeas-cli

Command line client for Write.as / WriteFreely
https://write.as/apps/cli
GNU General Public License v3.0
113 stars 20 forks source link

make config directory configurable #28

Closed ghost closed 5 years ago

ghost commented 5 years ago

this adds a configurable directory, currently within the users path for the configuration, user and post data to be saved.

it is accessible down the stack of the application via the cli.Context, specificaly c.App.ExtraData which is a function that returns a map of [string]string under the key 'configDir".