pingcap/tiflow

pretty print `get-config`

开放

#3,937 创建于 2021年2月5日

 (4 条评论) (0 个反应) (0 位负责人)Go (310 个派生)auto 404
area/dmgood first issuehelp wantedsubject/new-feature

仓库指标

星标
 (461 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Feature Request

Is your feature request related to a problem? Please describe:

get-config source mysql-replica-01
{
    "result": true,
    "msg": "",
    "cfg": "enable-gtid: false\nauto-fix-gtid: false\nrelay-dir: \"\"\nmeta-dir: \"\"\nflavor: mysql\ncharset: \"\"\nenable-relay: false\nrelay-binlog-name: \"\"\nrelay-binlog-gtid: \"\"\nsource-id: mysql-replica-01\nfrom:\n  host: 172.16.4.222\n  port: 3306\n  user: dm_user\n  password: '******'\n  max-allowed-packet: null\n  session: {}\n  security: null\npurge:\n  interval: 3600\n  expires: 0\n  remain-space: 15\nchecker:\n  check-enable: true\n  backoff-rollback: 5m0s\n  backoff-max: 5m0s\n  check-interval: 5s\n  backoff-min: 1s\n  backoff-jitter: true\n  backoff-factor: 2\nserver-id: 429595182\ntracer: {}\n"
}

Describe the feature you'd like:

the content in cfg field should be pretty printed

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

贡献者指南