shiori/internal/cmd/root.go

30 lines
450 B
Go
Raw Normal View History

2019-05-21 11:31:40 +08:00
package cmd
import (
"github.com/spf13/cobra"
)
// ShioriCmd returns the root command for shiori
func ShioriCmd() *cobra.Command {
rootCmd := &cobra.Command{
Use: "shiori",
Short: "Simple command-line bookmark manager built with Go",
}
rootCmd.AddCommand(
accountCmd(),
addCmd(),
printCmd(),
searchCmd(),
updateCmd(),
deleteCmd(),
openCmd(),
importCmd(),
exportCmd(),
pocketCmd(),
serveCmd(),
)
return rootCmd
}