Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigCommand = &cobra.Command{ Use: "config", Short: "Configure your Couik preferences", Run: func(cmd *cobra.Command, args []string) { fmt.Println(cmd.Usage()) os.Exit(0) }, }
View Source
var RootCmd = &cobra.Command{ Use: "couik", Short: "Your typing experience brought to the terminal", Run: func(cmd *cobra.Command, args []string) {}, }
View Source
var SetCommand = &cobra.Command{ Use: "set", Short: "Set config preferences", Run: func(cmd *cobra.Command, args []string) { if len(args) < 2 { fmt.Println(cmd.Usage()) os.Exit(0) } key, value := args[0], args[1] SetConfig(key, value) fmt.Printf("Setting %s to %s", key, value) os.Exit(0) }, }
Functions ¶
func DisplayHelp ¶
func DisplayHelp()
func DisplayHistory ¶
func DisplayHistory()
func GetTextFromFile ¶ added in v0.1.1
Types ¶
type Config ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.