Skip to content

preserve spacing between template and instance #48

@thomasdfischer

Description

@thomasdfischer

Example

Template:

{
    "protocol": "http://",
    "host_sans_protocol": "localhost",
    "port": 5000,

    "bundle_protocol": "http://",
    "bundle_host_sans_protocol": "localhost",
    "bundle_port": 2999
}

Mark that as a template. Then, run cfg new entry-addr entry-addr-local.json. You'll see the output does not preserve spacing. Also, the fields are sorted alphabetically.

{
    "bundle_host_sans_protocol": "",
    "bundle_port": 0,
    "bundle_protocol": "",
    "host_sans_protocol": "",
    "port": 0,
    "protocol": ""
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions