endorama / devid

Securely manage your developer personas
Apache License 2.0
2 stars 0 forks source link

`rehash` overrides `ssh/config` and `ssh/known_hosts` files #15

Open endorama opened 6 months ago

endorama commented 6 months ago

When rehashing the mentioned files are always emptied (as overwritten with an empty content).

endorama commented 3 months ago

os.Create truncates file when already present. I suspect this is the issue, as those files should be created during setup and not touched afterwards.

I'm thinking of refactoring how the setup works: instead of directly performing actions affecting the fs, return some structure like plugin.Generated (should support folders too) and let the plugin manager handle that.