mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-16 12:57:58 +08:00
30 lines
450 B
Go
30 lines
450 B
Go
|
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
|
||
|
}
|