From 32014826d31a0e3852fbf51e0c66e441e6fcd91c Mon Sep 17 00:00:00 2001 From: Amolith Date: Sun, 21 Dec 2025 18:20:12 -0700 Subject: [PATCH] refactor(task): rename get to show for consistency Assisted-by: Claude Sonnet 4 via Crush --- cmd/task/{get.go => show.go} | 14 +++++++------- cmd/task/task.go | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) rename cmd/task/{get.go => show.go} (59%) diff --git a/cmd/task/get.go b/cmd/task/show.go similarity index 59% rename from cmd/task/get.go rename to cmd/task/show.go index 5bb1365c4c183cdf1d16a3c51a01266831b38eea..781465809a018d09aa4f505c51364722ca81748f 100644 --- a/cmd/task/get.go +++ b/cmd/task/show.go @@ -11,10 +11,10 @@ import ( "github.com/spf13/cobra" ) -// GetCmd retrieves a task by ID. Exported for potential use by shortcuts. -var GetCmd = &cobra.Command{ - Use: "get ID", - Short: "Get a task by ID or reference", +// ShowCmd displays a task by ID. Exported for potential use by shortcuts. +var ShowCmd = &cobra.Command{ + Use: "show ID", + Short: "Show task details", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { id, err := validate.Reference(args[0]) @@ -22,13 +22,13 @@ var GetCmd = &cobra.Command{ return err } - // TODO: implement task get - fmt.Fprintf(cmd.OutOrStdout(), "Getting task %s (not yet implemented)\n", id) + // TODO: implement task show + fmt.Fprintf(cmd.OutOrStdout(), "Showing task %s (not yet implemented)\n", id) return nil }, } func init() { - GetCmd.Flags().Bool("json", false, "Output as JSON") + ShowCmd.Flags().Bool("json", false, "Output as JSON") } diff --git a/cmd/task/task.go b/cmd/task/task.go index ca8deae2e1abe6d187d5f2e7e9dc2070a5757bfe..4b5bb5e7aad8b4640231484bd4804f6bcfca7593 100644 --- a/cmd/task/task.go +++ b/cmd/task/task.go @@ -17,7 +17,7 @@ var Cmd = &cobra.Command{ func init() { Cmd.AddCommand(AddCmd) Cmd.AddCommand(ListCmd) - Cmd.AddCommand(GetCmd) + Cmd.AddCommand(ShowCmd) Cmd.AddCommand(UpdateCmd) Cmd.AddCommand(DeleteCmd) }