~schube/here-script

update readme file
7f12e057 — Victor Schubert 8 years ago
Add a `compact` formatting for the `--what` option.

The `compact` formatting shows a list of bindings, without the
attributed actions.
92a0ced3 — Victor Schubert 8 years ago
Update the Git example to use `command`.

Change `shell` fields to `command` fields in order to be able to pass
arguments to git.
8bd1c669 — Victor Schubert 8 years ago
Add support for passing arguments.

Arguments can now be passed to the called command after its name.
7dc03b22 — Victor Schubert 8 years ago
Add support for the `success` rule.

The `success` rule's argument shall be a shell command which will be
evaluated to be true if its return code is zero.
8e9802b6 — Victor « Magic Bit-Bot » Schubert 8 years ago
Add some more useful examples.
0c9959ac — Victor « Magic Bit-Bot » Schubert 8 years ago
Add several matching rules.

Rename `path` to `in`.
Add the `at` rule, which only matches the directory and not its
children.
Add the `none` rule, which matches iff none of its rules match.
Add the `sibling` rule, which matches if any ancestor contains the given
file.

Edit the examples and README accordingly.
d12b5163 — Victor « Magic Bit-Bot » Schubert 8 years ago
Cache the rulebooks using `pickle`.
3ac03d5a — Victor « Magic Bit-Bot » Schubert 8 years ago
Split `hs` into modules.
ea2bc0dd — Victor « Magic Bit-Bot » Schubert 8 years ago
Sort output when showing rules.
dc63794a — Victor « Magic Bit-Bot » Schubert 8 years ago
Rename "Definition" into "Rulebook".
5e3dcc59 — Victor « Magic Bit-Bot » Schubert 8 years ago
Add command execution.

The commands under the `shell` key are now executed.
11e3f204 — Victor « Magic Bit-Bot » Schubert 8 years ago
Add pretty and oneline printing.

Pretty print by default or one-line with `-woneline`.
450a8191 — Victor « Magic Bit-Bot » Schubert 8 years ago
Build an action dictionary.

Build an action dictionary whose keys are the bindings which will be
used ( after removing ambiguous bindings ) and whose elements are the
actions.
cfbcb52c — Victor « Magic Bit-Bot » Schubert 8 years ago
Add the Action object.
14cd22f2 — Victor « Magic Bit-Bot » Schubert 8 years ago
Refactor the definition acquisition.
f054600c — Victor « Magic Bit-Bot » Schubert 8 years ago
Add rules testing.

Directories can now be tested by defined rules. Defined rules are :
 - contains: Tests whether the directory contains an entry with this
     name. If the name ends with a '/', the file MUST be a directory.
 - path: Tests whether the directory is a descendant of the specified
     directory.
 - all: Tests whether all child rules evaluated to true.
 - any: Tests whether any child rule evaluated to true.

There is an implicit root rule, which acts as an 'all' rule.
42577e98 — Victor « Magic Bit-Bot » Schubert 8 years ago
Add examples and correct the README

Add some examples, correct the old ones, along with the README.md file.
3681bd33 — Victor Schubert 8 years ago
Create README.md
39a2bb07 — Victor « Magic Bit-Bot » Schubert 8 years ago
Add definition loading.

Definition files are now loaded and parsed to python dictionary objects.
Next