1 (* Authinfo2 module for Augeas *)
2 (* Author: Nicolas Gif <ngf18490@pm.me> *)
3 (* Heavily based on DPUT module by Raphael Pinson *)
4 (* <raphink@gmail.com> *)
10 (************************************************************************
12 *************************************************************************)
13 let comment = IniFile.comment IniFile.comment_re "#"
15 let sep = IniFile.sep IniFile.sep_re ":"
18 (************************************************************************
20 *************************************************************************)
22 IniFile.entry_generic_nocomment (key IniFile.entry_re) sep IniFile.comment_re comment
25 (************************************************************************
27 *************************************************************************)
28 let title = IniFile.title IniFile.record_re
29 let record = IniFile.record title entry
32 (************************************************************************
34 *************************************************************************)
35 let lns = IniFile.lns record comment
37 let filter = (incl (Sys.getenv("HOME") . "/.s3ql/authinfo2"))
39 let xfm = transform lns filter