/Autotagical/Output/format.dhall
Copy path to clipboardOutput.format
Function
Given an opening separator for tags, a separator between tags, and a closing separator for tags, create an output format that writes files tagged in that format. All text must be nonempty.
Default Behavior
Output formats created with this function default to the following:
-
Files will be tagged in the order
File Name -> Tags -> File Extension
. - Leading tag separators will not be written.
- Trailing tag separators will not be written.
- Tagged values are forbidden.
To override any of this behavior, use Output.With
.
Usage
let Autotagical = https://siriusstarr.github.io/autotagical/dhall/package.dhall
in Autotagical.Output.format "[" "," "]"
Source
let Order =
../Internal/InputFormat/Order sha256:77ea7cca209ab0ef9afd003a580efa8aba29cf572cbe095698679fb25a96d24c
? ../Internal/InputFormat/Order
let OutputFormat =
../Internal/OutputFormat/Type sha256:90a967648257956b041755ef770b4d5a1adce53345a9443d872080c2f511ca2c
? ../Internal/OutputFormat/Type
let TaggedValueFormat =
../Internal/OutputFormat/TaggedValueFormat sha256:695155008931bf451f550cd682d0057920d1498dceac6e133774c6b200c6ba40
? ../Internal/OutputFormat/TaggedValueFormat
let format
: Text → Text → Text → OutputFormat
= λ(openingSeparator : Text) →
λ(tagSeparator : Text) →
λ(closingSeparator : Text) →
{ tagOrder = Order.NameTagsExtension
, openingSeparator
, leadingTagSeparator = False
, tagSeparator
, taggedValueFormat = None TaggedValueFormat
, trailingTagSeparator = False
, closingSeparator
}
in format