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) }