summaryrefslogtreecommitdiff
path: root/command.go
AgeCommit message (Collapse)Author
2019-11-18V2Eyal Posener
2017-11-04Filter matches as a final stageEyal Posener
This simplifies the prediction logic writing, the predictor doesn't need to filter our according to line matching, instead it returns everything and the filtering is done at the end. This does not break current behavior.
2017-08-25lint: fix typoEyal Posener
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-24Avoid unnecessary if statementAlex Dadgar
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-15Add global flags for commandEyal Posener
Fixes #24
2017-05-12Add Predict method to Flags and CommandsEyal Posener
2017-05-11Fix commentEyal Posener
2017-05-11Change Match to be a functionEyal Posener
2017-05-11Add Predictor interfaceEyal Posener
2017-05-11Add args structEyal Posener
2017-05-11Improve files and directories completionEyal Posener
2017-05-07Move match to a separate packageEyal Posener
2017-05-07Remove Name from Command structEyal Posener
2017-05-06improve docsEyal Posener
2017-05-06Change Predicate to be of function typeEyal Posener
2017-05-06Use local completion files and directories according to typed commandEyal Posener
2017-05-06Use pointers to predicatesEyal Posener
2017-05-06Add easy way to install the bash completionEyal Posener
2017-05-06Roughly add all go commandsEyal 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-05Add plural forms for less verbose declarationsEyal Posener
2017-05-05Initial commitEyal Posener