From bdbd8f1fb4f01a6dbef13a2a97530f95011bd1ba Mon Sep 17 00:00:00 2001 From: Frederic Lemoine Date: Thu, 26 Sep 2024 21:17:43 +0200 Subject: [PATCH] Renamed gotree prune date to cut date --- cmd/cut.go | 16 ++++++++++++++++ cmd/{prunedate.go => cutdate.go} | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 cmd/cut.go rename cmd/{prunedate.go => cutdate.go} (98%) diff --git a/cmd/cut.go b/cmd/cut.go new file mode 100644 index 0000000..2664f6c --- /dev/null +++ b/cmd/cut.go @@ -0,0 +1,16 @@ +package cmd + +import ( + "github.com/spf13/cobra" +) + +var cutdateCmd = &cobra.Command{ + Use: "cut", + Short: "Cut the tree", + Long: ``, + RunE: func(cmd *cobra.Command, args []string) (err error) { return }, +} + +func init() { + RootCmd.AddCommand(cutdateCmd) +} diff --git a/cmd/prunedate.go b/cmd/cutdate.go similarity index 98% rename from cmd/prunedate.go rename to cmd/cutdate.go index 4786285..53bce63 100644 --- a/cmd/prunedate.go +++ b/cmd/cutdate.go @@ -69,7 +69,7 @@ If max-date falls on an internal branch, we do not take this part of the tree, a } func init() { - pruneCmd.AddCommand(pruneDateCmd) + cutdateCmd.AddCommand(pruneDateCmd) pruneDateCmd.PersistentFlags().StringVarP(&intreefile, "input", "i", "stdin", "Input tree(s) file") pruneDateCmd.PersistentFlags().StringVarP(&outtreefile, "output", "o", "stdout", "Forest output file") pruneDateCmd.PersistentFlags().Float64Var(&pruneMinDate, "min-date", 0, "Minimum date to cut the tree")