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