fix: publish
This commit is contained in:
@@ -2,6 +2,9 @@ package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"exporter/config"
|
||||
|
||||
"github.com/gotd/td/tg"
|
||||
"github.com/pkg/errors"
|
||||
@@ -18,7 +21,12 @@ func ExportCmd() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "export",
|
||||
Short: "export channels",
|
||||
RunE: wrapE(exportCmd),
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
fmt.Println("init client")
|
||||
defer fmt.Println("init client done")
|
||||
return InitClient(config.C)
|
||||
},
|
||||
RunE: wrapE(exportCmd),
|
||||
}
|
||||
|
||||
cmd.Flags().Int64Var(&channelID, "channel", 0, "channel id")
|
||||
|
||||
Reference in New Issue
Block a user