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
|
@ -95,10 +95,8 @@ perform o remotemap key ai = do
|
|||
|
||||
mapM_ (showRemoteUrls remotemap) urls
|
||||
Just formatter -> liftIO $ do
|
||||
let vs = catMaybes
|
||||
[ fmap (("file",) . fromRawFilePath)
|
||||
(actionItemWorkTreeFile ai)
|
||||
] ++ Command.Find.keyVars key
|
||||
let vs = Command.Find.formatVars key
|
||||
(AssociatedFile (actionItemWorkTreeFile ai))
|
||||
let showformatted muuid murl = putStr $
|
||||
Utility.Format.format formatter $
|
||||
M.fromList $ vs ++ catMaybes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue