summaryrefslogtreecommitdiff
path: root/complete_test.go
AgeCommit message (Collapse)Author
2017-11-04Add logic to complete when last flag uses the equal signEyal Posener
If the last flag is of the form -flag=value, complete the value according to -flag.
2017-08-24Fix tests from rebaseAlex Dadgar
2017-08-24Default to hiding flags that start with hyphen unless last arg has a hyphenAlex Dadgar
2017-08-24Allow restricting completion of flagsAlex Dadgar
This PR allows a command to specify that flags should only be completed when a prefix is present. The motivation behind this is to have the initial complation to prefer displaying argument completions and only display flag completions when the user enters "hyphen <tab>".
2017-08-23Fix a subcommand matchingAlex Dadgar
This PR fixes an issue where a subcommand matches the current set of commands being examined. Fixes issue https://github.com/posener/complete/issues/46
2017-05-18Fix './' prefix for file completionEyal Posener
2017-05-15Add global flags for commandEyal Posener
Fixes #24
2017-05-13fix nested filesEyal Posener
2017-05-11predict: when searching for files, show also directoriesEyal Posener
2017-05-11Add Predictor interfaceEyal Posener
2017-05-11Add args structEyal Posener
2017-05-11Improve files and directories completionEyal Posener
2017-05-10Enable completion and executable be the same commandEyal Posener
Fixes #6
2017-05-06Remove Complete structEyal Posener
2017-05-06nicer signature for PredictSetEyal Posener
2017-05-05Add additional argsEyal Posener
add predition of directories add ability for prediction union
2017-05-05RenamingsEyal Posener
2017-05-05Add file completion flagEyal Posener
2017-05-05Initial commitEyal Posener