mirror of
https://github.com/thunderbrewhq/binana.git
synced 2026-04-17 15:33:54 +00:00
feat(binana): change tool to deposit generated files into an 'artifacts' folder that isn't retained by repository history
This commit is contained in:
parent
68f52b8efd
commit
47b08df145
44 changed files with 904 additions and 622 deletions
32
go/app/cmd/make/make.go
Normal file
32
go/app/cmd/make/make.go
Normal 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(¶ms)
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue