| Age | Commit message (Collapse) | Author |
|
While at it, refactor the string output when printing the version to
print string "version" instead of only "v".
|
|
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.
|
|
Golangci-lint is too unreliable for working with gotip, use too
much memory, and its become red herring and subjective instead of
correctness.
|
|
|
|
In POSIX system, the correct installation for bash completion
script should be /usr/share/bash-completion not under /etc
directory.
|
|
|
|
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
|
|
Use the constant Version instead, no need to automate this.
While at it, fix the test coverage HTML output file name.
|
|
|
|
|
|
The build task now create binary under _sys/usr/bin/, while the install
task install the binary based on $DESTDIR environment variable, not
$GOBIN.
|
|
|
|
The "version" command print the module version based on the latest tag,
with additional commit number and hash.
|
|
|
|
See https://kilabit.info/journal/2022/gpl/ for more information.
|
|
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
|
|
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
|