aboutsummaryrefslogtreecommitdiff
path: root/pkg/cli
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2017-07-07 12:14:06 +0200
committerStefan Majewsky <majewsky@gmx.net>2017-07-07 12:14:06 +0200
commit23077b75410d6fab51762236f195d92bd559fc6a (patch)
tree12ec00d832b3958d5194adeab4b73ff37aeeef4b /pkg/cli
parent79933615f7988cb731baa0768a45b39008f18b20 (diff)
downloadgofu-23077b75410d6fab51762236f195d92bd559fc6a.tar.gz
many more `rtree get` tests
Diffstat (limited to 'pkg/cli')
-rw-r--r--pkg/cli/query.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/cli/query.go b/pkg/cli/query.go
index aa8fa50..65cb2a5 100644
--- a/pkg/cli/query.go
+++ b/pkg/cli/query.go
@@ -273,6 +273,8 @@ func (t *pipeTUI) Query(prompt string, choices ...Choice) (string, error) {
if err != nil {
return str, err
}
+ str = strings.TrimSpace(str)
+
//prefer exact match on choice.Text
for _, choice := range choices {
if choice.Text == str {