examinekey: Added a "file" format variable
For consistency with find, and for easier scripting.
This commit is contained in:
parent
21ab496f6b
commit
5a8d01f63e
6 changed files with 25 additions and 10 deletions
|
@ -9,7 +9,7 @@ module Command.ExamineKey where
|
|||
|
||||
import Command
|
||||
import qualified Utility.Format
|
||||
import Command.Find (parseFormatOption, showFormatted, keyVars)
|
||||
import Command.Find (parseFormatOption, showFormatted, formatVars)
|
||||
import Annex.Link
|
||||
import Backend
|
||||
import Types.Backend
|
||||
|
@ -57,7 +57,7 @@ run o _ input = do
|
|||
showFormatted (format o) (serializeKey' k) $
|
||||
[ ("objectpath", fromRawFilePath objectpath)
|
||||
, ("objectpointer", fromRawFilePath objectpointer)
|
||||
] ++ keyVars k
|
||||
] ++ formatVars k af
|
||||
return True
|
||||
where
|
||||
-- Parse the input, which is either a key, or in batch mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue