Skip to content

Add utility method for displaying CLI separators #2567

@t1m0thyj

Description

@t1m0thyj

Is your feature or enhancement request related to a problem or limitation? Please describe

There is inconsistency between the length of dividers printed in command output.
As a CLI user, this is a slight inconvenience particularly if my screen width is narrow.
As an extender, it would be convenient to have a method I can call in my own plug-in.

Describe your enhancement idea

Provide a method in Imperative console API for printing a separator line to the terminal.
Consider including an option for minimum width and percent width.

Describe alternatives you've considered

Provide any additional context

params.response.console.log("\n_______________________________________________________________");

private static readonly divider = `______________________________________________${os.EOL}`;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnewThe issue wasn't triaged yet

    Type

    No type

    Projects

    Status

    New Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions