update third party dependencies

This commit is contained in:
MaysWind
2020-11-12 01:01:27 +08:00
parent bd6093e20e
commit 8fe600ce1a
8 changed files with 63 additions and 71 deletions
+3 -3
View File
@@ -1,17 +1,17 @@
package cmd
import (
"github.com/urfave/cli"
"github.com/urfave/cli/v2"
"github.com/mayswind/lab/pkg/datastore"
"github.com/mayswind/lab/pkg/log"
"github.com/mayswind/lab/pkg/models"
)
var Database = cli.Command{
var Database = &cli.Command{
Name: "database",
Usage: "lab database maintenance",
Subcommands: []cli.Command{
Subcommands: []*cli.Command{
{
Name: "update",
Usage: "Update database structure",
+2 -2
View File
@@ -4,7 +4,7 @@ import (
"encoding/json"
"os"
"github.com/urfave/cli"
"github.com/urfave/cli/v2"
"github.com/mayswind/lab/pkg/datastore"
"github.com/mayswind/lab/pkg/log"
@@ -14,7 +14,7 @@ import (
func initializeSystem(c *cli.Context) (*settings.Config, error) {
var err error
configFilePath := c.GlobalString("conf-path")
configFilePath := c.String("conf-path")
if configFilePath != "" {
if _, err = os.Stat(configFilePath); err != nil {
+3 -3
View File
@@ -9,7 +9,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
"github.com/go-playground/validator/v10"
"github.com/urfave/cli"
"github.com/urfave/cli/v2"
"github.com/mayswind/lab/pkg/api"
"github.com/mayswind/lab/pkg/core"
@@ -22,10 +22,10 @@ import (
"github.com/mayswind/lab/pkg/validators"
)
var WebServer = cli.Command{
var WebServer = &cli.Command{
Name: "server",
Usage: "lab web server operation",
Subcommands: []cli.Command{
Subcommands: []*cli.Command{
{
Name: "run",
Usage: "Run lab web server",