- Added a GitHub Workflow for releases.
- Updated dependencies.
- Updated dependencies.
- Updated to ginkgo v2.
- Updated dependencies.
- Changed default branch from
master
tomain
. - Updated dependencies.
-
Added the following options to
get
command:--base-url
: the base URL to the GitHub REST API v3-compatible server--owner
: the owner or organization of the repository of gitignore files--repository
: the name of the repository of gitignore files--branch
: the branch of the repository from which to list gitignore files
- Removed the
--api-url
option from theget
command.
- Refactored
get
command to use GitHub REST API v3, making it similar to thelist
command. - Renamed
--max-connections
to--max-requests
for theget
command. - Changed the short alias flag for
--owner
from-o
to-w
of thelist
command, to avoid conflict with the--output
alias of theget
command. - Moved all non-command code to
pkg
subdirectory, following the recommended layout in golang-standards/project-layout. The core code can be found underpkg/getignore/
. The code for interacting with GitHub can be found underpkg/github/
- Switched testing framework from stretch/testify to Ginkgo and Gomega.
- Renamed
install-deps
rule todev-install
inMakefile
.
- Removed unused code for
list
command.
-
Added the following options to
list
command:--base-url
: the base URL to the GitHub REST API v3-compatible server--owner
: the owner or organization of the repository of gitignore files--repository
: the name of the repository of gitignore files--branch
: the branch of the repository from which to list gitignore files
- Removed the
--api-url
option from thelist
command.
- Refactored
list
command to use GitHub REST API v3. - Added dependency on go-github to interact with the GitHub REST API.
- Upgraded dependencies.
- Fixed
make install
so that it includes necessaryLDFLAGS
, too.
- Added builds for macOS ARM64 (Apple Silicon)
- Added GitHub Actions for CI.
- Removed Travis CI integration.
- Upgraded dependencies.
- Added completions for Bash and zsh.
- Upgraded dependencies, including to v2 of urfave/cli. This is a backwards-incompatible change because the commands will no longer accept flags after arguments.
- Switched to using
go mod
to manage dependencies, dropping the dependency on glide.
- Tests now depend on testify.
testutils
module replaced by testify.
- Empty lines before and after patterns in the retrieved file contents are now stripped, making line spacing consistent.
list
command now available.go vet
now applied during CI.
- Changed the API for
HTTPGetter.GetIgnoreFiles
to take an array of names and return an array ofcontentstructs.NamedIgnoreContents
and anerror
. Previously this took a channel as input, on which it sent the results. Channels have been moved internal to theGetIgnoreFiles
method. - Updated dependency on cli.
- Updated the minimum Go version to build to 1.8.
- Removed
contentstructs.RetrievedContents
as it was no longer necessary.
- Fixed an issue where
getignore get
would deadlock if the number of files requested exceeded the maximum number of connections. (See issue #3.)
- Additional unit tests.
get
command now writes output toSTDOUT
by default (previously defaulted to.gitignore
in the current working directory).- Reorganized code into separate packages.
Initial release.