Skip to content

spawn list: ANSI colour codes when stdout isn't a TTY; TTL column shows the configured TTL, not time remaining #898

Closed

Description

@scttfrdmn

Version: spawn 0.128.2 (38b2d66), macOS arm64, us-west-2

spawn list | cat (or any pipe or file) still emits colour escapes:

i-028c23f816d2eb68e  demo  m8a.4xlarge  \x1b[32mrunning\x1b[0m  spored-instance-profile  us-west-2a  7m   1h   54.200.188.179  ✓

Suggest disabling colour when stdout isn't a terminal, and honouring NO_COLOR.

The TTL column shows 1h (the launch setting) for an instance 7 minutes old. spawn status shows "59m 12s remaining". In a list view, time remaining (or the deadline) is what you scan for. Suggest 53m or TTL left.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions