export_content.go 427 B

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