Skip to content

Commit e9fbd3b

Browse files
committed
feat(cli): add 'u' alias for 'beans update'
Allows users to use `beans u` as a shortcut for `beans update`.
1 parent 180c833 commit e9fbd3b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.beans/beans-2ajb--add-u-alias-for-beans-update.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: Add 'u' alias for 'beans update'
3-
status: todo
3+
status: completed
44
type: feature
55
priority: normal
66
created_at: 2025-12-12T22:39:31Z
7-
updated_at: 2025-12-12T23:04:38Z
7+
updated_at: 2025-12-12T23:22:29Z
88
parent: beans-xnp8
99
---
1010

cmd/update.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ var (
3030
)
3131

3232
var updateCmd = &cobra.Command{
33-
Use: "update <id>",
34-
Short: "Update a bean's properties",
35-
Long: `Updates one or more properties of an existing bean.`,
33+
Use: "update <id>",
34+
Aliases: []string{"u"},
35+
Short: "Update a bean's properties",
36+
Long: `Updates one or more properties of an existing bean.`,
3637
Args: cobra.ExactArgs(1),
3738
RunE: func(cmd *cobra.Command, args []string) error {
3839
ctx := context.Background()

0 commit comments

Comments
 (0)