Home

go-spectre @main - refs - log -
-
https://git.jolheiser.com/go-spectre.git
Go implementation for spectre/masterpassword
tree log patch
Use fs args in CLI Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmGdtbUACgkQuFOtpdp7 v3oTZw//YNRwFoRH+sQZXEukjvlqckeq6P52tl7KjziMwZk0YuoFccK58HVF/VI5 VJng5K/wpkzl5NdD95JLmMwwA5h461pEsbkNZmFNnIev5Ot128jwidV8KyIG5t0E hOpjTyVXlvjglU+YQ1HetkBS6ISzxzHGWG0l9Wk4oM9uFxPsjfTHVUnM4bIDKqX6 lEzi8siTflxwQ3atpA5yJLVO/S9zK0hfrncfBRC6uWnFDtLlNJVFMwigs7cwFVSN L01QNQmGKhjYiFAgEsU/otQsgGzzqDyTOjahXU9qEnKTG7uig2Cqc4YQxYTDC2cK KZP+uO2+onRunyLPhKaOe2vIc2tELhSwHMZTo5RTZBbkpbwE10ASf7Bo7rEtP4vL 6U9qtGO8btfcz4rAIaV66dxa+PbYopW/SWqjqwTR4i8AfTOGlr2HEcKHxuNV73DZ n1AoH9pboze+IbnGIj5iR7z0Gw9JC2dNUTG0XDfvTlUh1jZGESI6GxpQ/NolJedx btLTf0IS6GbynswMYSyNr1TbmccbYCgB8xirC37DmFAhpzHkNaZxrswbxx8swngl nNV4bpfX+RTfQbNrE8macSAVpKf7zSeIMPA3Vpk9uGrpXuqtSzRnLH5/zsU2bYDp UcVV42tCcsJtCxQLjrF30T6vMcmrVJp2QzjvN2XoUDjHVMxDRHI= =t37s -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
3 years ago
1 changed files, 2 additions(+), 2 deletions(-)
M cmd/spectre/main.go -> cmd/spectre/main.go
diff --git a/cmd/spectre/main.go b/cmd/spectre/main.go
index 9248bc2add33ff8eb80061f076f542d7e31ae9f1..da941f83a95480819dd59ed6c1539450f724b899 100644
--- a/cmd/spectre/main.go
+++ b/cmd/spectre/main.go
@@ -41,7 +41,7 @@ 	if templateFlag == "" {
 		templateFlag = scopeFlag.DefaultTemplate()
 	}
 
-	if *usernameFlag == "" || *secretFlag == "" || len(os.Args) < 2 {
+	if *usernameFlag == "" || *secretFlag == "" || fs.NArg() < 1 {
 		panic("username, secret, and site are required")
 	}
 
@@ -52,7 +52,7 @@ 	if err != nil {
 		panic(err)
 	}
 
-	pw := s.Site(os.Args[1],
+	pw := s.Site(fs.Arg(0),
 		spectre.WithScope(scopeFlag),
 		spectre.WithTemplate(templateFlag),
 		spectre.WithCounter(*counterFlag),