mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 17:44:59 +09:00
25 lines
405 B
Go
25 lines
405 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var CliCmd = &cobra.Command{
|
|
Use: "cli",
|
|
Short: "CLI utilities",
|
|
Long: `Various CLI utilities for cafe operations.`,
|
|
}
|
|
|
|
func init() {
|
|
// subcommands
|
|
CliCmd.AddCommand(migrateCmd)
|
|
CliCmd.AddCommand(cafeCmd)
|
|
// local flags
|
|
}
|
|
|
|
func main() {
|
|
if err := CliCmd.Execute(); err != nil {
|
|
fmt.Printf("failed to execute: %s", err.Error())
|
|
}
|
|
}
|