summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-06Update readme according to Go docGoreadme
2021-04-06complete: enable complete.Complete() output capturing (#138)antichris
* complete: test capturing Complete() output Implement an Example test to demonstrate capturing the output of Complete(), which is crucial for integration tests. * complete: do not hard-code the I/O streams at the package initialization Instead of defining the input/output streams as unexported global vars that only get their values assigned to once, at the very initialization of the package, use the values that `os.Stdin` and `os.Stdout` have at the particular moment on every `complete.Complete()` call. Fix #137 * complete: capture and discard output in TestComplete Restore earlier behavior using proper stream redirection this time. * complete: output capturing example: define things in the package scope Define the `stringLookup` func type and `promptEnv` func in the package scope instead of the `ExampleComplete_outputCapturing` test. * complete: rename the `stringLookup` func type to `getEnvFn`
2021-04-01Merge pull request #136 from antichris/gocomplete-let-tests-failEyal Posener
gocomplete: do not suppress test failures
2021-04-01gocomplete: do not suppress test failuresChris Nobody
Ensure that the components of the `testing` package that rely on calling `os.Exit` remain functional and any test failures are actually reported back after the `monkey.Patch` in the `gocomplete.Example` test. Fix #135
2021-01-30Fix failing go1.16 testEyal Posener
Fixes #132
2020-11-08fix crash when COMP_POINT is greater than COMP_LINE size (#128)Chris Walz
Some shells (inexplicably) occasionally have a COMP_POINT that is greater than the COMP_LINE size. When that happens completion should be based on length of the COMP_LINE to avoid an out of bounds error. See the original hack fix here: https://github.com/chriswalz/bit/blob/master/cmd/bitcomplete.go on line 39
2020-05-10Merge pull request #123 from posener/autogenEyal Posener
Use autogen to generate code
2020-05-10Use autogenEyal Posener
2020-05-09Update readme according to Go docGoreadme
2020-05-09Merge pull request #122 from posener/genEyal Posener
Autogenerate compflag code
2020-05-09Autogenerate compflag codeEyal Posener
2020-04-10Update readme according to Go docGoreadme
2020-04-10Better godoc badgeEyal Posener
2020-04-09Update readme according to Go docGoreadme
2020-04-09remove goreadme badgeEyal Posener
2020-04-09Update readme according to Go docGoreadme
2020-04-09Merge pull request #121 from posener/actionsEyal Posener
Add github actions
2020-04-09Add github actionsEyal Posener
2020-04-04Update readmeEyal Posener
2020-04-04Add installation instructionsEyal Posener
Related to #120
2020-01-03Fix (un)installation failure detectionEyal Posener
2019-11-27Add missing functions to flagsetEyal Posener
2019-11-27Use command line name instead of external nameEyal Posener
2019-11-27Add duration flagEyal Posener
2019-11-27Fix doc errorEyal Posener
2019-11-24Update to script 1.0.4Eyal Posener
2019-11-24fix script changeEyal Posener
2019-11-23update readmeEyal Posener
2019-11-23Install: use script libraryEyal Posener
2019-11-23Add forgoten option testsEyal Posener
2019-11-22Options: added docsEyal Posener
2019-11-22Options: add testsEyal Posener
2019-11-22Fix nil completorEyal Posener
2019-11-22Extract flag options to predict packageEyal Posener
2019-11-21Fix completion of help when completing flagsEyal Posener
2019-11-20fix references to completeEyal Posener
2019-11-19Merge pull request #109 from posener/goreadmeEyal Posener
readme: Update according to go doc
2019-11-19Update readme according to go docgoreadme
2019-11-19Actually adding the install packageEyal Posener
2019-11-19Move install package back to project rootEyal Posener
2019-11-18Merge pull request #106 from posener/goreadmeEyal Posener
readme: Update according to go doc
2019-11-18Update readme according to go docgoreadme
2019-11-18fix docEyal Posener
2019-11-18update module import pathEyal Posener
2019-11-18Merge pull request #105 from posener/goreadmeEyal Posener
readme: Update according to go doc
2019-11-17Update readme according to go docgoreadme
2019-11-18Merge pull request #104 from posener/v2Eyal Posener
Complete v2
2019-11-18V2Eyal Posener
2019-10-24Merge pull request #103 from posener/gocomplete-modEyal Posener
Remove gocomplete module files
2019-10-23Remove gocomplete module filesEyal Posener
Fixes #93