raftario / filite

A simple, light and standalone pastebin, URL shortener and file-sharing service
MIT License
190 stars 16 forks source link

Add a reset command to generate a fresh config and/or password #7

Closed caycaycarly closed 4 years ago

caycaycarly commented 4 years ago

When a user deletes the contents of the .filite/ folder, in order to start afresh, he can't generate a new config file.

The following error is displayed

$ ./filite.exe
Can't read config file.

When the .filite/ folder is deleted, the user can generate the config file again.

raftario commented 4 years ago

Would adding a reset subcommand make sense?

caycaycarly commented 4 years ago

Yes, that could be a fix.

reset config and reset password

steven-joruk commented 4 years ago

I like your idea of a reset command. The related PR just handles the case where the file has been deleted.

raftario commented 4 years ago

Nice, adding the command should be trivial since everything that's needed is already in the setup module. Will look at the PRs once I'm able to test them.

raftario commented 4 years ago

13 fixed the original issue, keeping this open to track and discuss the reset command.

raftario commented 4 years ago

The command is filite init