kcmd

package module
v0.0.0-...-34e6419 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 8 Imported by: 0

README

KCMD


Getting started

- golang version >= v1.15
Usage
go get -u github.com/sqmt/kcmd
package main

import (
    "fmt"
    "github.com/sqmt/kcmd"
    "os"
)

func main() {
    // add commands
    // kcmd.AddCommand(yourCustomCommand1, Command2)
    // remove command
    // kcmd.RemoveCommand(yourCustomCommand1, Command2)
    if err := kcmd.Execute(); err != nil {
        fmt.Fprintln(os.Stderr, err)
        os.Exit(1)
    }
}

Features

  • Sql Migrate, Supports SQLite, PostgreSQL, MySQL, MSSQL databases

Contributors

Thank you for considering your contribution to kcmd!

License

This library is distributed under the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(command ...*cobra.Command)

func Execute

func Execute(args ...string) error

func RemoveCommand

func RemoveCommand(command ...*cobra.Command)

Types

This section is empty.

Directories

Path Synopsis
commands

Jump to

Keyboard shortcuts

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