Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (30 sloc) 485 Bytes
package main
import (
"github.com/spf13/cobra"
"log"
)
var (
itemRepository ItemRepository
)
func failOnError(err error) {
if err != nil {
fatal(err)
}
}
func fatal(message interface{}) {
log.Fatal(message)
}
func main() {
processStdin()
rootCmd := &cobra.Command{Use: "kobito"}
cmdLs(rootCmd)
cmdShow(rootCmd)
cmdHtml(rootCmd)
cmdPrint(rootCmd)
cmdLink(rootCmd)
cmdVersion(rootCmd)
cmdPdf(rootCmd)
cmdPassword(rootCmd)
cmdSticker(rootCmd)
rootCmd.Execute()
}