<feed xmlns='http://www.w3.org/2005/Atom'>
<title>interesting/complete/complete_test.go, branch v0.0.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>http://cgit.wit.com/interesting/complete/atom?h=v0.0.2</id>
<link rel='self' href='http://cgit.wit.com/interesting/complete/atom?h=v0.0.2'/>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/interesting/complete/'/>
<updated>2021-04-06T03:46:20Z</updated>
<entry>
<title>complete: enable complete.Complete() output capturing (#138)</title>
<updated>2021-04-06T03:46:20Z</updated>
<author>
<name>antichris</name>
<email>881420+antichris@users.noreply.github.com</email>
</author>
<published>2021-04-06T03:46:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/interesting/complete/commit/?id=4a17a04514e754aded1594d4125264e1e1976c6b'/>
<id>urn:sha1:4a17a04514e754aded1594d4125264e1e1976c6b</id>
<content type='text'>
* 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`</content>
</entry>
<entry>
<title>fix crash when COMP_POINT is greater than COMP_LINE size (#128)</title>
<updated>2020-11-08T16:56:26Z</updated>
<author>
<name>Chris Walz</name>
<email>zlaw777@gmail.com</email>
</author>
<published>2020-11-08T16:56:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/interesting/complete/commit/?id=246bd25c47871a148cf3eec2ba4b1ba0ec5809ad'/>
<id>urn:sha1:246bd25c47871a148cf3eec2ba4b1ba0ec5809ad</id>
<content type='text'>
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</content>
</entry>
<entry>
<title>Add github actions</title>
<updated>2020-04-09T18:31:51Z</updated>
<author>
<name>Eyal Posener</name>
<email>posener@gmail.com</email>
</author>
<published>2020-04-09T16:07:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/interesting/complete/commit/?id=f929a1cfb4039a5519d84c2deff05cbaf05ce776'/>
<id>urn:sha1:f929a1cfb4039a5519d84c2deff05cbaf05ce776</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix completion of help when completing flags</title>
<updated>2019-11-20T22:16:33Z</updated>
<author>
<name>Eyal Posener</name>
<email>posener@gmail.com</email>
</author>
<published>2019-11-20T22:16:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/interesting/complete/commit/?id=cf002b9a50d777b10beaf228f316c5da34f8178a'/>
<id>urn:sha1:cf002b9a50d777b10beaf228f316c5da34f8178a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>update module import path</title>
<updated>2019-11-17T23:25:16Z</updated>
<author>
<name>Eyal Posener</name>
<email>posener@gmail.com</email>
</author>
<published>2019-11-17T23:25:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/interesting/complete/commit/?id=7c7ab2f59af947a5e7016df85ad353e10074bec4'/>
<id>urn:sha1:7c7ab2f59af947a5e7016df85ad353e10074bec4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>V2</title>
<updated>2019-11-17T23:05:47Z</updated>
<author>
<name>Eyal Posener</name>
<email>posener@gmail.com</email>
</author>
<published>2019-11-14T04:51:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/interesting/complete/commit/?id=8724aaf18312e54750540a9578e00d61b1c545d8'/>
<id>urn:sha1:8724aaf18312e54750540a9578e00d61b1c545d8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>reproduce sub command bug</title>
<updated>2019-10-23T19:27:02Z</updated>
<author>
<name>Eyal Posener</name>
<email>posener@gmail.com</email>
</author>
<published>2019-10-23T19:27:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/interesting/complete/commit/?id=e24ae2ec882eef4b8d9f42177fd026d3db4bdb73'/>
<id>urn:sha1:e24ae2ec882eef4b8d9f42177fd026d3db4bdb73</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for CMP_POINT</title>
<updated>2018-10-19T17:10:37Z</updated>
<author>
<name>Eyal Posener</name>
<email>posener@gmail.com</email>
</author>
<published>2018-10-19T17:10:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/interesting/complete/commit/?id=5fdb1adfd7447867ac25c2dbafbe577ccc6d9e7f'/>
<id>urn:sha1:5fdb1adfd7447867ac25c2dbafbe577ccc6d9e7f</id>
<content type='text'>
Fixes #72
</content>
</entry>
<entry>
<title>Merge branch 'master' into split-last-equal</title>
<updated>2017-11-04T09:52:49Z</updated>
<author>
<name>Eyal Posener</name>
<email>eyal@stratoscale.com</email>
</author>
<published>2017-11-04T09:52:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/interesting/complete/commit/?id=a1f9ea005b8360153429321071da4e42ce6ce323'/>
<id>urn:sha1:a1f9ea005b8360153429321071da4e42ce6ce323</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add logic to complete when last flag uses the equal sign</title>
<updated>2017-11-04T09:32:33Z</updated>
<author>
<name>Eyal Posener</name>
<email>posener@gmail.com</email>
</author>
<published>2017-11-04T09:20:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/interesting/complete/commit/?id=aae7e1e39fb3554591e2d20b4c86fea9bf2b15bc'/>
<id>urn:sha1:aae7e1e39fb3554591e2d20b4c86fea9bf2b15bc</id>
<content type='text'>
If the last flag is of the form -flag=value, complete the value according to -flag.
</content>
</entry>
</feed>
