Browse Source

Submodule ykoath

master
IamTheFij 5 months ago
parent
commit
e212cee7c6
  1. 3
      .gitmodules
  2. 2
      Makefile
  3. 2
      go.mod
  4. 2
      scripts/yk.fish
  5. 1
      ykoath

3
.gitmodules

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

2
Makefile

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

2
go.mod

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

2
scripts/yk.fish

@ -3,7 +3,7 @@ complete -c yk -f
# Add completion for setting password
complete -c yk -a set-password -d "Set authentication password"
# 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"
yk (yk list | fzf) | pbcopy

1
ykoath

@ -0,0 +1 @@
Subproject commit b083034539df4a37cb676af7afd7abd3d9f3ec4f
Loading…
Cancel
Save