cmd

package
v0.0.0-...-d2c9018 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiCmd

type ApiCmd struct {
	// contains filtered or unexported fields
}

func NewApiCmd

func NewApiCmd() *ApiCmd

func (*ApiCmd) GetDefaultNacosConfig

func (s *ApiCmd) GetDefaultNacosConfig() *nacos.NacosConfig

func (*ApiCmd) RunApi

func (s *ApiCmd) RunApi(cmd *cobra.Command, args []string)

type MigrateCmd

type MigrateCmd struct {
	Host     string
	Port     string
	Username string
	Password string
	Dbname   string
	Config   string
	// contains filtered or unexported fields
}

migrateCmd represents the migrate command

func NewMigrateCmd

func NewMigrateCmd() *MigrateCmd

func (*MigrateCmd) MigrateDatabase

func (s *MigrateCmd) MigrateDatabase(db *gorm.DB)

迁移数据库

func (*MigrateCmd) ResetDatabase

func (s *MigrateCmd) ResetDatabase(db *gorm.DB)

重置数据库

func (*MigrateCmd) RunMigrate

func (s *MigrateCmd) RunMigrate(cmd *cobra.Command, args []string)

type RootCmd

type RootCmd struct {
	// contains filtered or unexported fields
}

func NewRootCmd

func NewRootCmd() *RootCmd

func (*RootCmd) Execute

func (s *RootCmd) Execute()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL