added working object_exists function
This commit is contained in:
7
geef
7
geef
@@ -8,7 +8,12 @@ main([Command|_Args]) ->
|
||||
"h2r" ->
|
||||
[Object|_Rest] = _Args,
|
||||
Raw = geef:hex_to_raw(Object),
|
||||
io:format("Raw ~w~n", [Raw]);
|
||||
io:format("Raw: ~w~n", [Raw]);
|
||||
"exists" ->
|
||||
[Path|_Rest] = _Args,
|
||||
[Object|_None] = _Rest,
|
||||
Exists = geef:object_exists(Path, Object),
|
||||
io:format("Exists: ~w~n", [Exists]);
|
||||
_Else ->
|
||||
usage()
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user