Skip to content

Commit 8600784

Browse files
committed
added in create command stub
1 parent bac7727 commit 8600784

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

cmd/create.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
Copyright © 2025 Dreams of Code
3+
*/
4+
package cmd
5+
6+
import (
7+
"fmt"
8+
9+
"github.com/spf13/cobra"
10+
)
11+
12+
// createCmd represents the create command
13+
var createCmd = &cobra.Command{
14+
Use: "create",
15+
Aliases: []string{"add"},
16+
Short: "Used to create a new blog post",
17+
Run: func(cmd *cobra.Command, args []string) {
18+
fmt.Println("posts.create called")
19+
},
20+
}
21+
22+
func init() {
23+
postsCmd.AddCommand(createCmd)
24+
}

0 commit comments

Comments
 (0)