install_schema.go 416 B

123456789101112131415161718192021
  1. package command
  2. import (
  3. "fmt"
  4. "github.com/spf13/cobra"
  5. )
  6. var InstallSchemaCommand = &cobra.Command{
  7. Use: "schema",
  8. Short: "Install schema",
  9. Long: "Install the kurz database schema",
  10. Run: installSchemaCommand,
  11. }
  12. func installSchemaCommand(c *cobra.Command, args []string) {
  13. fmt.Println("Pretend to install the kurz database schema.")
  14. }
  15. func init() {
  16. InstallCommand.AddCommand(InstallSchemaCommand)
  17. }