Skip to content

Setting source="console" is incompatible with result="ansi" #13

@ssbarnea

Description

@ssbarnea

Describe the bug

It seems that it is not possible to include ANSI output while still showing the command that was executed.

To Reproduce

```bash exec="1" result="ansi"
ansible-lint -t idempotency playbook.yml
```

```bash exec="1" source="console" result="ansi"
ansible-lint -t idempotency playbook.yml
```

Expected behavior

Use of result=ansi should not depend of value of source.

Screenshots

  • The first example renders ansi correctly but it does not include the command line.
  • The second example includes the command line executed but fails to render ANSI and adds some extra backticks which break the rendering.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions