Commits

Konstantine Rybnikov committed adda1db

better README

Comments (0)

Files changed (2)

 
 Utility to merge multiple files into one.
 
-Usage::
+Usage for config:
+
+::
+
+    $ cat tests/testfiles/conf.yml 
+    base_path: tests/testfiles/test_yml_config_parser/
+    merge_groups:
+        - name: merged_most_popular.css
+          files:
+          - 1.css
+          - 2.css
+        - name: merged_site.css
+          files:
+          - 3.css
+
+is::
 
     >>> from hgfilemerge import HgFileMerge
-    >>>    
-    >>> merger = HgFileMerge()
-    >>> obj_config = get_yml_config('merge_config.yml')
-    >>> merger.configure_from_obj(obj_config)
-    >>> merger.save()
-
-Also::
-
-    $ cat merge_config.yml
+    >>> m = HgFileMerge()
+    >>> m.configure_from_file('./hgfilemerge/tests/testfiles/conf.yml')
+    >>> m.save()
 import logging
 
 log = logging.getLogger(__name__)
+log.setLevel(logging.INFO)
 
 class HgFileMerge():