25 Commits

Author SHA1 Message Date
0f7fefe163 Merge branch 'command-subpackage' into 'master'
Command subpackage

See merge request !3
2015-03-03 12:45:30 -05:00
Ian Adam Naval
ebe2a2fb3c Merge branch 'treenodes' into 'master'
Treenodes

Add some tree nodes.

See merge request !2
2015-03-03 12:37:36 -05:00
Ian Adam Naval
7ac4dfe562 Restructure to have commands be a subpackage. 2015-03-03 12:36:59 -05:00
Ian Adam Naval
e9d7f5f2b6 Fix new stuff from tests to work with TreeNodes 2015-03-03 12:14:20 -05:00
Ian Adam Naval
0300da9ec1 Merge branch 'treenodes' 2015-03-02 12:53:19 -05:00
Ian Adam Naval
5388385dab Fix syntax highlighting 2015-03-02 12:31:36 -05:00
Ian Adam Naval
26529fe5a1 Merge branch 'test' 2015-03-02 12:29:11 -05:00
Ian Adam Naval
2dafa40734 Merge branch 'history' into 'master'
History

Fixes #8

See merge request !1
2015-03-02 12:28:15 -05:00
Ian Adam Naval
f54ffc4136 Add docs for test formatter 2015-02-26 18:22:51 -05:00
Ian Adam Naval
781ae4b99c Moved shlex import to the raw command module
Makes much more sense to do the parsing at that point.
2015-02-26 18:19:12 -05:00
Ian Adam Naval
1d7d2d8446 Add tests for example commands 2015-02-26 18:08:01 -05:00
Ian Adam Naval
7b5b8b4d06 Make echo and example available in new shell 2015-02-26 18:07:50 -05:00
Ian Adam Naval
7e708ba4ab Made registering commands better
Registering commands requires adding the name as a string so that we can
have nice PEP 8-compatible class names for commands.
2015-02-26 17:47:06 -05:00
Ian Adam Naval
26cb8a5ed7 Restructure to Python package 2015-02-26 16:47:39 -05:00
Ian Adam Naval
e363bfd13c Add case for empty input 2015-02-26 16:36:02 -05:00
Ian Adam Naval
23ae01e442 Fix issue where empty inputs cause crash 2015-02-26 16:34:35 -05:00
Ian Adam Naval
6f04d50ea0 Add GNU readline-like support. 2015-02-26 16:30:48 -05:00
Ian Adam Naval
2e49872061 Add basic TreeNode 2015-02-26 16:22:21 -05:00
Ian Adam Naval
490c9f5900 Add some more documentation 2015-02-26 16:06:36 -05:00
Ian Adam Naval
5565f0c4ef Update api to use chain and call
Much sexier than __call__
2015-02-26 15:37:08 -05:00
Sam Abradi
2ed55a58d2 fixed the bullshit with the name conflict when loading commands that share names with commands being loaded from PATH. also made arguments work, basically by making BaseCommand take an aray of args in __init__ and then passing it all of the args in parse_cmd 2015-02-24 18:04:02 -05:00
Ian Adam Naval
80ac53e72e Fix example commands 2015-02-20 22:54:09 -05:00
Ian Adam Naval
9324774208 Improve shell argument parsing
For example, this patch fixes the command "df | awk '{print $1}'"
2015-02-20 22:53:22 -05:00
Ian Adam Naval
0a78e571fd tabs -> spaces 2015-02-20 18:27:21 -05:00
Ian Adam Naval
c9b1b2fba9 Initial commit 2015-02-20 18:20:22 -05:00