1
0
mirror of https://github.com/dani/patrix.git synced 2024-06-26 17:43:30 +02:00
Commit Graph

51 Commits

Author SHA1 Message Date
Daniel Berteaud
5207d794b5 Add support for --send-code 2017-11-24 12:30:29 +01:00
Daniel Berteaud
4f33da6593 Fix get-room-id, Room ID is already resolved at this point 2017-11-23 07:52:57 +01:00
Daniel Berteaud
b72ca6776f Resolve room alias to ID after setting defaults 2017-11-23 07:51:42 +01:00
Daniel Berteaud
7ba80c0dfe Define actions array before the loop 2017-11-19 12:50:58 +01:00
Daniel Berteaud
ff8f5fd7dc Remove options checking
Must be re-done properly
2017-09-24 12:16:07 +02:00
Daniel Berteaud
6a87cd1f0f Fix saving config file 2017-09-24 12:12:07 +02:00
Daniel Berteaud
c305f14349 Add --setup to create a config file 2017-09-24 11:59:50 +02:00
Daniel Berteaud
e74a1a1431 Alos trim / at the end of the server to build Matrix ID 2017-09-24 11:42:50 +02:00
Daniel Berteaud
34db17e370 federation option isn't used anymore (for now) 2017-09-24 11:40:12 +02:00
Daniel Berteaud
db6eef6836 Ask for server and matrix ID if missing 2017-09-24 11:39:40 +02:00
Daniel Berteaud
aa2acd2c62 Fix error message 2017-09-24 11:22:32 +02:00
Daniel Berteaud
2a7dacef1e Set some aliases for command line options 2017-09-13 19:17:14 +02:00
Daniel Berteaud
30d0afa005 Call modify_rom just after create
So we support exactly the same features on create and on modify
2017-09-13 19:06:24 +02:00
Daniel Berteaud
ee456446b8 Handle all media types (image/audio/video)
Also don't use Image::Size, not strictly required
2017-09-13 18:56:34 +02:00
Daniel Berteaud
10ca028c53 Support sending images 2017-09-13 18:42:31 +02:00
Daniel Berteaud
e19d403832 Remove dependency on Path::Tiny
So it's usable on el6
2017-09-13 18:21:49 +02:00
Daniel Berteaud
e86c3e98d3 Support sending several files 2017-09-13 17:37:50 +02:00
Daniel Berteaud
340efc0a0a Handle file path using ~ 2017-09-13 17:02:54 +02:00
Daniel Berteaud
7ee62e253d Handle relative file path 2017-09-13 16:56:21 +02:00
Daniel Berteaud
ffac9f3632 Add aliases for actions
--foo is now equivalent of --action=foo
2017-09-13 15:17:29 +02:00
Daniel Berteaud
565208b6cd Fix get-access-token and logout logic 2017-09-11 11:16:50 +02:00
Daniel Berteaud
ae9c8a7f12 Don't invalidate the access_token when requesting one 2017-09-11 10:47:52 +02:00
Daniel Berteaud
1adadbeb6c Add possibility to delete room aliases 2017-09-10 16:59:32 +02:00
Daniel Berteaud
f0a49c9dc4 Fix debug statement 2017-09-10 16:43:57 +02:00
Daniel Berteaud
0a7b73403f Handle power levels configuration in room-modify 2017-09-10 16:39:00 +02:00
Daniel Berteaud
7676ec7510 Add a room alias to id resolver 2017-09-10 11:26:26 +02:00
Daniel Berteaud
6562df7ebc Add comment 2017-09-10 10:41:26 +02:00
Daniel Berteaud
f5892003ff Prompt for the password if not given as arg, nor in the conf file 2017-09-10 10:32:53 +02:00
Daniel Berteaud
bd94a96e1e Add some debug statements in modify_room 2017-09-10 10:19:05 +02:00
Daniel Berteaud
4785d79710 Support changing join_rules 2017-09-10 10:14:23 +02:00
Daniel Berteaud
7a6899489e Don't die if we try to invite a user which has already been invited 2017-09-10 10:02:26 +02:00
Daniel Berteaud
a6b917b34f Make the send_request method more flexible
And use it everywhere
2017-09-10 09:51:25 +02:00
Daniel Berteaud
37f50043eb Code cleanup 2017-09-10 09:38:17 +02:00
Daniel Berteaud
87710c5290 Factorize common json request handling 2017-09-09 17:37:01 +02:00
Daniel Berteaud
4632749605 Move debug to its own function 2017-09-09 17:09:48 +02:00
Daniel Berteaud
299fd790fe Remove preset and visibility options 2017-09-09 16:42:46 +02:00
Daniel Berteaud
0e6001877c Add modify-room action 2017-09-09 16:42:11 +02:00
Daniel Berteaud
fb73e16732 Add --federation (and --no-federation) option when creating a room 2017-09-09 11:16:44 +02:00
Daniel Berteaud
a7c82d2cc2 Add visibility and preset options for create-room 2017-09-07 18:13:38 +02:00
Daniel Berteaud
fe719366ec Spacing issue 2017-09-07 17:56:31 +02:00
Daniel Berteaud
d5aa598638 Just output the room ID when creating a room 2017-09-07 17:56:09 +02:00
Daniel Berteaud
dd85f18c18 Add possibility to create a room 2017-09-07 17:54:12 +02:00
Daniel Berteaud
8d7de947f7 Various little fixes 2017-09-07 15:49:38 +02:00
Daniel Berteaud
b361379468 Code cleanup and comments 2017-09-07 13:49:58 +02:00
Daniel Berteaud
03a854f576 Fix joining room by alias
And replace --notice with --action=send-notice
2017-09-07 13:25:49 +02:00
Daniel Berteaud
517771707b Call login just once, if needed 2017-09-07 12:50:43 +02:00
Daniel Berteaud
ede4d1822b Add support for sending files 2017-09-07 12:46:40 +02:00
Daniel Berteaud
982ef36330 Correctly handle logout when using login&password 2017-09-06 18:04:23 +02:00
Daniel Berteaud
612af1e89a Add get-room-list action 2017-09-06 16:20:45 +02:00
Daniel Berteaud
642cc97e81 Remove Data::Dumper as it's not used 2017-09-06 15:34:42 +02:00