Skip to content

Add Intelligent Suggesting Command Correction #99

@kevwilliams

Description

@kevwilliams

When a user makes a datumctl get request and does not provide context the error message that responds is not informative enough to tell the user to change their approach.

datumctl get backends results in

Error from server (Forbidden): backends.gateway.envoyproxy.io is forbidden: User "kwilliams@datum.net" cannot list resource "backends" in API group "gateway.envoyproxy.io" in the namespace "default"`

This could be augmented to have a suggestion, in this case when the user does not provide a --project, or --organization the command is attempting to access things outside of the reach of the user. We could add this information to the error message to help the user realize that they need to be more specific in their request or provide that information to the user when they run the command "Try running --project or --organization to improve your results"

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