aboutsummaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2025-02-03all: set the Version using git describe and -ldflagsShulhan
While at it, refactor the string output when printing the version to print string "version" instead of only "v".
2025-02-03all: replace external linters with internal commandShulhan
The fieldalignment and shadow linters are from golang.org/x/tools. Those linters have an exposed APIs that can be combined into single call or program, which provided by "pakakeh.go/lib/goanalysis". This help reduce the tooling need to be installed or setup for development.
2025-01-08all: replace golangci-lint with go vetShulhan
Golangci-lint is too unreliable for working with gotip, use too much memory, and its become red herring and subjective instead of correctness.
2024-03-26all: comply with linter recommendationsShulhan
2024-01-31_sys: fix the bash completion installation directoryShulhan
In POSIX system, the correct installation for bash completion script should be /usr/share/bash-completion not under /etc directory.
2023-10-09Makefile: add task to install and uninstall gotp in macOSShulhan
2023-10-06all: add task linter and fix all warningsShulhan
We use revive [1], fieldalignment [2], and shadow [3] as linters. [1] https://github.com/mgechev/revive [2] https://pkg.go.dev/golang.org/x/tools@v0.13.0/go/analysis/passes/fieldalignment/cmd/fieldalignment [3] https://pkg.go.dev/golang.org/x/tools@v0.13.0/go/analysis/passes/shadow/cmd/shadow
2023-05-15all: remove setting Version in Makefile using ldflagsShulhan
Use the constant Version instead, no need to automate this. While at it, fix the test coverage HTML output file name.
2022-09-18all: add bash completion scriptShulhan
2022-09-18all: move the installation steps in AUR to Makefile.Shulhan
2022-09-18make: change the build and install directoryShulhan
The build task now create binary under _sys/usr/bin/, while the install task install the binary based on $DESTDIR environment variable, not $GOBIN.
2022-09-06all: add task to serve and preview the documentation at _docShulhan
2022-08-07cmd/gotp: add subcommand "version"Shulhan
The "version" command print the module version based on the latest tag, with additional commit number and hash.
2022-08-07all: generate coverage when running testsShulhan
2022-03-14all: re-licensing gotp under GPL-3.0 or laterShulhan
See https://kilabit.info/journal/2022/gpl/ for more information.
2022-02-08Makefile: set the CGO_ENABLED to 1 on go test commandShulhan
In case user set the CGO_ENABLED environment to 0, running "make all" will fail with the following error: go: -race requires cgo; enable cgo by setting CGO_ENABLED=1
2021-10-27gotp: command line interface for Time-based One Time Password (TOTP)Shulhan
The gotp currently has the following features, * add: add new TOTP issuer with their label and secret * gen: generate password * import: import TOTP from other provider, currently support Aegis * list: print all registered TOTP configuration by labels * remove: delete a TOTP configuration from file by label * rename: changes the TOTP configuration by its label