Skip to content
  • Michael Hanselmann's avatar
    Detect globbing patterns as query arguments · f8638e28
    Michael Hanselmann authored
    
    
    Short: this patch enables the use of “gnt-instance list '*.site'”.
    
    Detailed description: This patch changes the command line interface code
    to try to deduce the kind of filter from the arguments to a “list”
    command. If it's a list of plain names an old-style name filter is used.
    If filtering is forced or the single argument is potentially a filter,
    it is parsed as a query filter string. Any name looking like a globbing
    pattern (e.g. “*.site” or “web?.example.com”) is treated as such.
    
    Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
    Reviewed-by: default avatarIustin Pop <iustin@google.com>
    f8638e28