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():
     
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.