chore(cmd): do not output others to stdout

This commit is contained in:
iyear 2023-05-22 21:56:18 +08:00
parent 30f69d844c
commit db57237bb1
2 changed files with 0 additions and 4 deletions

View File

@ -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

View File

@ -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))
}