Add doc to Args
This commit is contained in:
parent
2f29661634
commit
ec762b2f87
10
args.go
10
args.go
|
@ -2,9 +2,19 @@ package complete
|
||||||
|
|
||||||
// Args describes command line arguments
|
// Args describes command line arguments
|
||||||
type Args struct {
|
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.
|
||||||
LastCompleted string
|
LastCompleted string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue