Hi there!
Could you please provide an example that shows an absolute swift beginner like myself how to do the most basic task?
My first attempt was literally copying the example from the README into a test.swift file, and handing that to swift: swift test.swift.
That of cause fails and complains:
/home/test.swift:1:12: error: cannot find 'Data' in scope
let data = Data(contentsOfFile: "ma_rules.rwz")!
^~~~
/home/test.swift:2:16: error: cannot find 'OutlookRulesFile' in scope
let file = try OutlookRulesFile(data: data)
^~~~~~~~~~~~~~~~
If you're wondering what I'm trying to accomplish:
I'd like to generally dump my way-too-big ruleset in a text format that is easy to read, so I can take a stab at reorganizing and making a more-understandable ruleset with less bugs.
Thanks and best regards,
Andre
Hi there!
Could you please provide an example that shows an absolute swift beginner like myself how to do the most basic task?
My first attempt was literally copying the example from the README into a
test.swiftfile, and handing that to swift:swift test.swift.That of cause fails and complains:
If you're wondering what I'm trying to accomplish:
I'd like to generally dump my way-too-big ruleset in a text format that is easy to read, so I can take a stab at reorganizing and making a more-understandable ruleset with less bugs.
Thanks and best regards,
Andre