Submodule ykoath

This commit is contained in:
IamTheFij 2021-01-07 14:34:33 -05:00
parent 79688199cb
commit e212cee7c6
5 changed files with 7 additions and 3 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "ykoath"]
path = ykoath
url = https://github.com/vividboarder/ykoath

View File

@ -1,6 +1,6 @@
VERSION ?= $(shell git describe --tags --dirty) VERSION ?= $(shell git describe --tags --dirty)
NAME := yk NAME := yk
GOFILES = *.go GOFILES = *.go go.mod go.sum
# Multi-arch targets are generated from this # Multi-arch targets are generated from this
TARGET_ALIAS = $(NAME)-linux-amd64 $(NAME)-linux-arm $(NAME)-linux-arm64 $(NAME)-darwin-amd64 TARGET_ALIAS = $(NAME)-linux-amd64 $(NAME)-linux-arm $(NAME)-linux-arm64 $(NAME)-darwin-amd64
TARGETS = $(addprefix dist/,$(TARGET_ALIAS)) TARGETS = $(addprefix dist/,$(TARGET_ALIAS))

2
go.mod
View File

@ -2,7 +2,7 @@ module git.iamthefij.com/iamthefij/yk-cli
go 1.15 go 1.15
replace github.com/yawn/ykoath => ../ykoath replace github.com/yawn/ykoath => ./ykoath
require ( require (
git.iamthefij.com/iamthefij/slog v1.2.0 git.iamthefij.com/iamthefij/slog v1.2.0

View File

@ -3,7 +3,7 @@ complete -c yk -f
# Add completion for setting password # Add completion for setting password
complete -c yk -a set-password -d "Set authentication password" complete -c yk -a set-password -d "Set authentication password"
# Add completion of credentials # Add completion of credentials
complete -c yk -a "(yk list)" -d "Credential to get totp for" complete -c yk -a "(yk list)" -d "Credential to get TOTP for"
function yk-copy --description "Select a credential using fzf and copy it to clipboard" function yk-copy --description "Select a credential using fzf and copy it to clipboard"
yk (yk list | fzf) | pbcopy yk (yk list | fzf) | pbcopy

1
ykoath Submodule

@ -0,0 +1 @@
Subproject commit b083034539df4a37cb676af7afd7abd3d9f3ec4f