feat(binana): change tool to deposit generated files into an 'artifacts' folder that isn't retained by repository history

This commit is contained in:
phaneron 2026-02-28 02:34:20 -05:00
parent 68f52b8efd
commit 47b08df145
44 changed files with 904 additions and 622 deletions

32
go/app/cmd/make/make.go Normal file
View file

@ -0,0 +1,32 @@
package make
import (
"github.com/spf13/cobra"
"github.com/thunderbrewhq/binana/go/app/cmd/root"
"github.com/thunderbrewhq/binana/go/app/profile"
)
func mk_func(cmd *cobra.Command, args []string) {
compress, err := cmd.Flags().GetBool("compress")
if err != nil {
panic(err)
}
var params profile.MakeParams
params.Profile = args[0]
params.CompressX64dbgDatabase = compress
profile.Make(&params)
}
var mk_cmd = cobra.Command{
Use: "mk profile",
Args: cobra.MinimumNArgs(1),
Short: "Convert source files into various tool formats",
Run: mk_func,
}
func init() {
f := mk_cmd.Flags()
f.BoolP("compress", "c", true, "enable/disable compression of the x64dbg database file")
root.RootCmd.AddCommand(&mk_cmd)
}