Skip to content

Case-sensitive resource matching #102

@ajmyyra

Description

@ajmyyra

Environment (required):

  • OS: Linux
  • Version 1.1.1

Describe the bug
It is possible to use upctl with resource names. Only problem is that the names are case-sensitive, which is an annoying UX issue.

To Reproduce
Steps to reproduce the behavior:

$ upctl network list

 UUID                                   Name                    Router   Type      Zone    
────────────────────────────────────── ─────────────────────── ──────── ───────── ─────────
 03f20361-e744-4892-acf6-67d1ad1023aa   Kubernetes                       private   de-fra1 

$ upctl network show kubernetes

ERROR: cannot resolve argument: nothing found matching 'kubernetes'

$ upctl network show Kubernetes
  
  Common
    UUID:   03f20361-e744-4892-acf6-67d1ad1023aa 
    Name:   Kubernetes                           
    Router:                                      
    Type:   private                              
    Zone:   de-fra1
    etc etc

Wanted behavior
Make name-matching case-insensitive, both in name searches as well as when tab completing (can be completed to correctly cased option)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions