Skip to content

Commit

Permalink
add get-id command to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
weetmuts authored and whoozle committed Jul 30, 2024
1 parent 35ab08b commit cf7036c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ namespace cli
make_function([this](const Path &path) -> void { Get(path); }));
AddCommand("get", "<file> <dst> downloads file to <dst>",
make_function([this](const Path &path, const LocalPath &dst) -> void { Get(dst, path); }));
AddCommand("get-id", "<id> get object by id",
make_function([this](mtp::u32 id) -> void { Get(mtp::ObjectId(id)); }));
AddCommand("get-id", "<id> <dst> get object by id to <dst>",
make_function([this](mtp::u32 id, const LocalPath &dst) -> void { Get(dst, mtp::ObjectId(id)); }));

AddCommand("get-thumb", "<file> downloads thumbnail for file",
make_function([this](const Path &path) -> void { GetThumb(path); }));
Expand Down

0 comments on commit cf7036c

Please sign in to comment.