actually loading and running some libgit2 code

This commit is contained in:
Scott Chacon
2010-05-24 17:09:32 -07:00
parent 89c86150c8
commit d76f1e87f2
4 changed files with 19 additions and 9 deletions

13
test
View File

@@ -3,18 +3,13 @@
%%! debug verbose -noshell
main([Object]) ->
try
geef:start(),
Test = geef:object_exists(4),
io:format("factorial ~s:~w~n", [Object, Test])
catch
_:_ ->
usage()
end;
geef:start(),
Test = geef:object_exists(4),
io:format("exists ~s:~w~n", [Object, Test]);
main(_) ->
usage().
usage() ->
io:format("usage: factorial integer\n"),
io:format("usage: ./test SHA\n"),
halt(1).