buildsafedev / bsf

Developer-centric tool to secure your software supply chain.
https://buildsafe.dev
Apache License 2.0
72 stars 13 forks source link

Add `bsf clean` command #120

Closed rakshitgondwal closed 2 weeks ago

rakshitgondwal commented 1 month ago

It often gets untidy while developing for a new feature or testing out things locally to manually delete the autogenerated bsf files/dirs such as: bsf/, bsf-result/, bsf.hcl, bsf.lock.

We should have a bsf clean that should clean all these autogenerated files.

Note: This command should only work under the BSF_DEBUG_MODE.

We already have a cleanup logic under cmd/init so we can reuse that.

Suraj-kumar00 commented 1 month ago

Hi @rakshitgondwal, how have you been? I would like to work on this issue, can you please guide me a little bit?

rakshitgondwal commented 1 month ago

Hi @Suraj-kumar00, we need to create a new bsf clean command that will clean up all the autogenerated files. Only thing is that this command should be under the BSF_DEBUG_MODE. We have a a couple other commands under that such as bsf precheck, similarly clean should be implemented. You can reuse this logic as well: https://github.com/buildsafedev/bsf/blob/a2c73d1a07c03290df94270b30c687bac5491b41/cmd/init/init.go#L150

hanshal101 commented 4 weeks ago

Hey is this issue still up? If yes I would like to work on it!

rakshitgondwal commented 3 weeks ago

Hey @hanshal101, you can go ahead and make a PR