N0MoreSecr3ts / wraith

Uncover forgotten secrets and bring them back to life, haunting security and operations teams.
MIT License
206 stars 42 forks source link

Allow alternate config file location. #94

Closed flowchartsman closed 2 years ago

flowchartsman commented 3 years ago

Restricting configuration to exist in $HOME limits use of this tool in an automated way. Please consider adding a root-level flag to specify the configuration location.

mattyjones commented 3 years ago

@flowchartsman I thought that was already in there, looks like I was mistaken. This should be fairly simple, by adding a flag to each command and then setting it here. There should also be a default entry as well set to the original location to ensure we have a fallback.

Is this something you would like to PR? Happy to take PR's.

This could be helpful

mattyjones commented 3 years ago

@flowchartsman I am poking at this now, working through doing it cleanly so that it is global and can be a single file for all subcommands, following the existing pattern. There is a feature branch but the code is not yet stable.

mattyjones commented 2 years ago

@flowchartsman This has now been implemented.