mirror of
https://github.com/thunderbrewhq/binana.git
synced 2026-03-22 22:00:13 +00:00
25 lines
518 B
Go
25 lines
518 B
Go
package tidy
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"github.com/thunderbrewhq/binana/go/app/cmd/root"
|
|
"github.com/thunderbrewhq/binana/go/app/profile"
|
|
)
|
|
|
|
var tidy_cmd = cobra.Command{
|
|
Use: "tidy profile",
|
|
Short: "sort all symbol files in a profile",
|
|
Args: cobra.MinimumNArgs(1),
|
|
Run: tidy_func,
|
|
}
|
|
|
|
func init() {
|
|
//f := tidy_cmd.Flags()
|
|
root.RootCmd.AddCommand(&tidy_cmd)
|
|
}
|
|
|
|
func tidy_func(cmd *cobra.Command, args []string) {
|
|
var params profile.TidyParams
|
|
params.Profile = args[0]
|
|
profile.Tidy(¶ms)
|
|
}
|