pingcap/tiflow

pretty print `get-config`

オープン

#3,937 opened on 2021/02/05

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)Go (310 件のフォーク)auto 404
area/dmgood first issuehelp wantedsubject/new-feature

Repository metrics

Stars
 (461 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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:

コントリビューターガイド