summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2017-05-12 22:43:33 +0300
committerEyal Posener <[email protected]>2017-05-12 22:46:01 +0300
commit66402080675c250edabe50839555942d1b1aa189 (patch)
tree42c857d1815f215ca610bc47331425ea20ed3cc3 /args.go
parent136e52e074be4a85fb9e9bccf93d060c46e67561 (diff)
Recursive directory lookup
When only one directory matches the result, search recursively whithin this directory for files.
Diffstat (limited to 'args.go')
-rw-r--r--args.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/args.go b/args.go
index 6d4fea6..0d2b94d 100644
--- a/args.go
+++ b/args.go
@@ -3,15 +3,15 @@ package complete
// Args describes command line arguments
type Args struct {
// All lists of all arguments in command line (not including the command itself)
- All []string
+ All []string
// Completed lists of all completed arguments in command line,
// If the last one is still being typed - no space after it,
// it won't appear in this list of arguments.
- Completed []string
+ Completed []string
// Last argument in command line, the one being typed, if the last
// character in the command line is a space, this argument will be empty,
// otherwise this would be the last word.
- Last string
+ Last string
// LastCompleted is the last argument that was fully typed.
// If the last character in the command line is space, this would be the
// last word, otherwise, it would be the word before that.