Commit Graph

6 Commits

Author SHA1 Message Date
Ryan X. Charles 08f918a9a7 add File storage class and tests 2014-04-16 21:12:27 -03:00
Ryan X. Charles 4241287887 use decorator 2014-04-15 16:53:23 -03:00
Ryan X. Charles dd2e8c585e move Copay.js -> API.js, and handle case of no command better
* API is a more appropriate name for what this is. It is intended to be the
 interface used by external apps.
* The case where you run "copay" with no command is now handled better.
2014-04-15 14:57:06 -03:00
Ryan X. Charles 4773b6577a add getArgTypes command
Which allows you to see what arguments you need to pass to a function.
2014-04-15 14:57:06 -03:00
Ryan X. Charles cba3487988 improve error handling - print error rather than crash 2014-04-15 14:57:06 -03:00
Ryan X. Charles 26073921fb add initial command-line interface
You can see commands by running "copay getCommands"

Types are enforced - right now only strings work. This is so that types can be
coerced from the command-line correctly. Number of arguments are also enforced.
In the future you will be able to pass in JSON objects as arguments and they
will be translated to real objects.
2014-04-14 18:24:46 -03:00