Commit Graph

81 Commits

Author SHA1 Message Date
Eyal Posener 3dd16239ee Add example test to increase coverate 2017-05-15 23:01:05 +03:00
Eyal Posener ff8cd4ed39 gocomplete: run only runnable go files
when typing 'go run', the completion will complete only go files
which are in main package and have a main function.
2017-05-15 22:50:05 +03:00
Eyal Posener e00c0546bc gocomplete: add build flags to get command 2017-05-15 16:37:36 +03:00
Eyal Posener 79782dedf9 Merge pull request #22 from divan/master
Update readme.md
2017-05-15 16:35:59 +03:00
Ivan Daniluk 337e95201a Update readme.md
`go install` command won't download source, it works only if source already dowloaded into GOPATH. For the installation, we should use `go get` command - it will download sources first and then run `go install`.
2017-05-15 15:06:36 +02:00
Eyal Posener 75e4e53b5f fmt 2017-05-14 08:41:09 +03:00
Eyal Posener 6c02dfed24 Merge pull request #21 from posener/tests
test: add args tests
2017-05-13 22:57:37 +03:00
Eyal Posener a32482e70d test: add args tests 2017-05-13 22:44:36 +03:00
Eyal Posener 8bad6313cc Merge pull request #20 from posener/readme
fix readme
2017-05-13 11:34:29 +03:00
Eyal Posener 6436632c82 fix readme 2017-05-13 11:31:38 +03:00
Eyal Posener 20781cb9cf Merge pull request #19 from posener/readme
Update readme.md
2017-05-13 11:30:29 +03:00
Eyal Posener fc04737363 Update readme.md 2017-05-13 11:21:02 +03:00
Eyal Posener 758253551e Merge pull request #18 from posener/zsh
zsh support
2017-05-13 11:10:46 +03:00
Eyal Posener 87f385425a readme: change headers 2017-05-13 11:08:03 +03:00
Eyal Posener 3de2e3534f remove testing flags from complete command 2017-05-13 11:07:03 +03:00
Eyal Posener 3776c7286e cmd/install: add support for zsh
Fixes: #9
2017-05-13 11:06:15 +03:00
Eyal Posener cc2d0e6974 Merge pull request #17 from posener/readme
more to read in readme
2017-05-13 00:54:00 +03:00
Eyal Posener c7377ba2de more to read in readme 2017-05-13 00:50:48 +03:00
Eyal Posener 9123548bc5 Merge pull request #16 from posener/recursive-dirs
Recursive directories and complete by go packages
2017-05-13 00:45:08 +03:00
Eyal Posener bc5d682221 fix nested files 2017-05-13 00:40:26 +03:00
Eyal Posener f580110640 gocomplete: complete by packages 2017-05-13 00:17:59 +03:00
Eyal Posener 6640208067 Recursive directory lookup
When only one directory matches the result, search recursively
whithin this directory for files.
2017-05-12 22:46:01 +03:00
Eyal Posener 136e52e074 Merge pull request #15 from posener/doc
Add doc to Args
2017-05-12 15:26:01 +03:00
Eyal Posener ec762b2f87 Add doc to Args 2017-05-12 15:19:47 +03:00
Eyal Posener 2f29661634 Merge pull request #14 from posener/flags-commands
Add Predict method to Flags and Commands
2017-05-12 15:13:43 +03:00
Eyal Posener 66d7d8c670 Add Predict method to Flags and Commands 2017-05-12 15:08:36 +03:00
Eyal Posener bd51afb7f2 Merge pull request #13 from posener/improves
Improves
2017-05-11 22:23:41 +03:00
Eyal Posener 026906bf10 predict files: extract predictFiles function 2017-05-11 22:19:23 +03:00
Eyal Posener 200b1b5b69 predict: split file 2017-05-11 22:02:05 +03:00
Eyal Posener d6cbc0e969 predict: when searching for files, show also directories 2017-05-11 21:57:44 +03:00
Eyal Posener 7b1b902128 Don't complete when last argument is previous directory 2017-05-11 21:06:06 +03:00
Eyal Posener d3bbb859d5 Merge pull request #12 from posener/improves
Enhance program structure and data structures
2017-05-11 20:54:26 +03:00
Eyal Posener ba23c350c7 Fix comment 2017-05-11 20:51:33 +03:00
Eyal Posener 115e175c3d Change Match to be a function 2017-05-11 20:48:40 +03:00
Eyal Posener 967bae76f3 Add Predictor interface 2017-05-11 20:33:29 +03:00
Eyal Posener a28594d28e Add args struct 2017-05-11 18:50:12 +03:00
Eyal Posener dd2171d085 Merge pull request #11 from posener/files-complete
Improve files and directories completion
2017-05-11 02:20:27 +03:00
Eyal Posener 72dfe017e9 Improve files and directories completion 2017-05-11 02:16:39 +03:00
Eyal Posener 1c743d8c0b Merge pull request #10 from posener/alongside
Enable completion and executable be the same command
2017-05-10 20:14:34 +03:00
Eyal Posener 9de57bdcf5 Enable completion and executable be the same command
Fixes #6
2017-05-10 19:21:35 +03:00
Eyal Posener 5db452a63f Install fixups
- remove root installation
- install according to shell type

Closes #7
2017-05-08 07:32:13 +03:00
Eyal Posener b2791b7360 Fix relative path 2017-05-08 06:51:11 +03:00
Eyal Posener c06142941d [gocomplete] fix test name completion 2017-05-08 06:44:00 +03:00
Eyal Posener 6dd6a04d24 Merge pull request #8 from posener/move-match
Move match
2017-05-08 06:33:45 +03:00
Eyal Posener 328144c31b [travis] test multiple packages 2017-05-08 06:30:01 +03:00
Eyal Posener dd75ca3aff Improve Matcher interface 2017-05-07 19:57:44 +03:00
Eyal Posener 6fb4875efa Move match to a separate package 2017-05-07 19:57:41 +03:00
Eyal Posener e8f6dfad58 fix readme install instructions 2017-05-07 16:57:09 +03:00
Eyal Posener 22862094d0 Merge pull request #5 from posener/remove-name
Remove Name from Command struct
2017-05-07 09:41:30 +03:00
Eyal Posener fd5c13f7ed Remove Name from Command struct 2017-05-07 07:59:42 +03:00