gogjango/gjango

View on GitHub
cmd/migrate.go

Summary

Maintainability
A
0 mins
Test Coverage
package cmd

import (
    "github.com/spf13/cobra"
)

// migrateCmd represents the migrate command
var migrateCmd = &cobra.Command{
    Use:   "migrate",
    Short: "migrate runs schema migration",
    Long:  `migrate runs schema migration`,
}

func init() {
    rootCmd.AddCommand(migrateCmd)

    // Here you will define your flags and configuration settings.

    // Cobra supports Persistent Flags which will work for this command
    // and all subcommands, e.g.:
    // migrateCmd.PersistentFlags().String("foo", "", "A help for foo")

    // Cobra supports local flags which will only run when this command
    // is called directly, e.g.:
    // migrateCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}