crytic / medusa

Parallelized, coverage-guided, mutational Solidity smart contract fuzzing, powered by go-ethereum
https://www.trailofbits.com/
GNU Affero General Public License v3.0
292 stars 37 forks source link

add warning to `medusa init` and option to force overwrite instead of overwriting by default #375

Closed 0xalpharush closed 1 month ago

0xalpharush commented 3 months ago

medusa init; medusa init will overwrite the file without warning, causing the settings to be lost

0xalpharush commented 3 months ago

add warning and prompt yes or no to overwrite the file here https://github.com/crytic/medusa/blob/08a6eab7353b831f436ce8a317835a986640fc02/cmd/init.go#L139-L144