initial commit

This commit is contained in:
2026-01-01 21:46:20 +01:00
commit 26a46f92c1
11 changed files with 356 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
var (
addCmd = &cobra.Command{
Short: "Add note to depository",
Use: "add [note]",
Run: addNote,
}
)
func init() {
rootCmd.AddCommand(addCmd)
}
func addNote(cmd *cobra.Command, args []string) {
// open new note in $EDITOR
fmt.Println(args)
}