initial commit
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user