Skip to content

[suggestion] Add an option to get a plain list of app names #1098

@cprodhomme

Description

@cprodhomme

Currently, extracting the list of applications using scalingo apps is cumbersome because the output is formatted as a table with decorative characters:

$ scalingo apps
+-----------------------------------------------+--------------+---------+
|                     NAME                      |     ROLE     | STATUS  |
+-----------------------------------------------+--------------+---------+
| my-app                                        | collaborator | running |
| my-app-2                                      | collaborator | running |
+-----------------------------------------------+--------------+---------+

Parsing this output to extract only the application names is unnecessarily complicated.

Feature Request

Could you add an option (e.g., --plain or --names-only) to return only the list of application names without additional formatting?

Example:

$ scalingo apps --plain
my-app
my-app2

This would make automation scripts much easier to write and maintain. Thanks! 😊

EDIT : I got the list with the commande : scalingo apps | awk -F'|' 'NR>2 && NF>1 {gsub(/^ +| +$/, "", $2); print $2}'

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions