Skip to content

Commit 180c833

Browse files
committed
feat(cli): add 'c' and 'new' aliases for 'beans create'
Allows users to use `beans c` or `beans new` as shortcuts for `beans create`.
1 parent 6f22a9a commit 180c833

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.beans/beans-ah6h--add-c-and-new-aliases-for-beans-create.md

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

cmd/create.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ var (
2626
)
2727

2828
var createCmd = &cobra.Command{
29-
Use: "create [title]",
30-
Short: "Create a new bean",
31-
Long: `Creates a new bean (issue) with a generated ID and optional title.`,
29+
Use: "create [title]",
30+
Aliases: []string{"c", "new"},
31+
Short: "Create a new bean",
32+
Long: `Creates a new bean (issue) with a generated ID and optional title.`,
3233
RunE: func(cmd *cobra.Command, args []string) error {
3334
title := strings.Join(args, " ")
3435
if title == "" {

0 commit comments

Comments
 (0)