Skip to content
jc-rs
GitHub

debconf-show

--debconf-showv1.0.0

Converts `debconf-show` command output to JSON

Linuxcommand
$ debconf-show | jc-rs --debconf-show

A real pair

From the reference corpus (generic/debconf-show.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

debconf-showgeneric
* onlyoffice/jwt-secret: aL8ei2iereuzee7cuJ6Cahjah1ixee2ah
  onlyoffice/db-pwd: (password omitted)
* onlyoffice/rabbitmq-pwd: (password omitted)
* onlyoffice/ds-port: 80
* onlyoffice/docservice-port: 8000
* onlyoffice/jwt-enabled: true
* onlyoffice/remove-db: false
* onlyoffice/jwt-header: Authorization
* onlyoffice/db-port: 5432
* onlyoffice/rabbitmq-user: onlyoffice
* onlyoffice/example-port: 3000
* onlyoffice/db-name: onlyoffice
* onlyoffice/db-host: localhost
* onlyoffice/db-type: postgres
* onlyoffice/rabbitmq-host: localhost
* onlyoffice/db-user: onlyoffice
* onlyoffice/rabbitmq-proto: amqp
* onlyoffice/cluster-mode: false
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "jwt_secret",
    "value": "aL8ei2iereuzee7cuJ6Cahjah1ixee2ah"
  },
  {
    "asked": false,
    "packagename": "onlyoffice",
    "name": "db_pwd",
    "value": "(password omitted)"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "rabbitmq_pwd",
    "value": "(password omitted)"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "ds_port",
    "value": "80"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "docservice_port",
    "value": "8000"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "jwt_enabled",
    "value": "true"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "remove_db",
    "value": "false"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "jwt_header",
    "value": "Authorization"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "db_port",
    "value": "5432"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "rabbitmq_user",
    "value": "onlyoffice"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "example_port",
    "value": "3000"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "db_name",
    "value": "onlyoffice"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "db_host",
    "value": "localhost"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "db_type",
    "value": "postgres"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "rabbitmq_host",
    "value": "localhost"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "db_user",
    "value": "onlyoffice"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "rabbitmq_proto",
    "value": "amqp"
  },
  {
    "asked": true,
    "packagename": "onlyoffice",
    "name": "cluster_mode",
    "value": "false"
  }
]

Fixture coverage

1/1oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs debconf-showjc-rs runs the command itself and parses what it prints. Recognised for: `debconf-show`

Source: crates/jc-rs-parsers/src/package/debconf_show.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare