gime/cmd/editor.go

28 lines
474 B
Go
Raw Normal View History

2022-01-19 18:56:31 +00:00
/*
2022-01-19 21:30:30 +00:00
Copyright © 2022 Brian Buller <brian@bullercodeworks.com>
2022-01-19 18:56:31 +00:00
*/
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
// editorCmd represents the editor command
var editorCmd = &cobra.Command{
Use: "editor",
Short: "Open either the timer.txt file or the done.txt file in the default editor ",
RunE: opEditor,
2022-01-19 18:56:31 +00:00
}
func init() {
rootCmd.AddCommand(editorCmd)
2022-01-19 21:30:30 +00:00
}
2022-01-19 18:56:31 +00:00
2022-01-19 21:30:30 +00:00
func opEditor(cmd *cobra.Command, args []string) error {
fmt.Println("editor called")
return nil
2022-01-19 18:56:31 +00:00
}