We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bac7727 commit 8600784Copy full SHA for 8600784
cmd/create.go
@@ -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