mirror of
https://github.com/iyear/tdl
synced 2025-01-09 04:17:35 +08:00
chore(cmd): do not output others to stdout
This commit is contained in:
parent
30f69d844c
commit
db57237bb1
@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/fatih/color"
|
||||
"github.com/gotd/contrib/middleware/ratelimit"
|
||||
"github.com/gotd/td/telegram/message/peer"
|
||||
"github.com/gotd/td/telegram/query"
|
||||
@ -80,8 +79,6 @@ func List(ctx context.Context, opts ListOptions) error {
|
||||
}
|
||||
|
||||
return tgc.RunWithAuth(ctx, c, func(ctx context.Context) error {
|
||||
color.Blue("Getting dialogs...")
|
||||
|
||||
dialogs, err := query.GetDialogs(c.API()).BatchSize(100).Collect(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -33,7 +33,6 @@ func New() *cobra.Command {
|
||||
|
||||
ns := viper.GetString(consts.FlagNamespace)
|
||||
if ns != "" {
|
||||
color.Cyan("Namespace: %s", ns)
|
||||
logger.From(cmd.Context()).Info("Namespace",
|
||||
zap.String("namespace", ns))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user