gpm/cmd/export.go

25 lines
343 B
Go
Raw Normal View History

package cmd
import (
"fmt"
"gitea.com/gpm/gpm/modules/config"
"github.com/urfave/cli/v2"
)
var Export = cli.Command{
Name: "export",
Usage: "Export local gpm packages",
Action: doExport,
}
func doExport(ctx *cli.Context) error {
export, err := config.Export()
if err != nil {
return err
}
fmt.Println(export)
return nil
}