[pass] [PATCH] Added -t/--tail option for show

Tobias V. Langhoff tobias at langhoff.no
Fri Apr 18 16:51:27 CEST 2014


On Fri, Apr 18, 2014 at 11:47 AM, Jason A. Donenfeld <Jason at zx2c4.com> wrote:
> Should we then also have a -h/--head too?
>
> Perhaps instead -c should take an optional integer argument. Positive
> numbers indicate the first X lines. Negative numbers indicate the last X
> lines. What would you think of this?

This is a level of detail that I don't feel is necessary. pass already
has several commands to operate specifically on the FIRST line of a
password file, which by definition is the "password"; it would make
perfect sense to have commands (like --tail) to operate on anything
BUT the first line, data that people use in a variety of ways
(two-factor backup codes, API keys, secret question answers, etc) but
at least has in common the fact that we know it's not the actual
password. Therefore I think a --tail option makes perfect sense
without having a corresponding --head option.

Regarding an integer argument, I believe operating on specific line
NUMBERS would be an unnecessary extra layer of complexity for the
user, but in the future perhaps operating on specific LINES in some
other way would be useful if the password files had structured (but
not predefined) metadata, if only a structure like "key: value\nkey:
value" with non-predefined keys and values (which allows for things
like the Firefox plugin passff). That way -c could take an optional
FIELD value instead of an integer value. But that's another
discussion.

-- 
Tobias V. Langhoff


More information about the Password-Store mailing list