|
f32becf5f5
|
Added a check to return an empty string when attempting to read a file that doesn't exist
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-26 16:35:02 +02:00 |
|
|
901ef7818d
|
Added the logout subcommand and show by default the app help when no subcommand is provided
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-26 11:54:52 +02:00 |
|
|
41b78b3bdb
|
Refactored to use the dirs crate to get the config files easily
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-26 11:20:07 +02:00 |
|
|
16f52a330b
|
Added a way to save files easily
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-26 11:02:31 +02:00 |
|
|
c37beb32c2
|
Implemented a function to give the configuration folder based on XDG_CONFIG_HOME and by default ~/.config/ suffixed with the program name
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-25 20:39:50 +02:00 |
|
|
8520b1e8a3
|
Refactored to only return lychee_session cookie and to return String from login function
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-25 11:58:24 +02:00 |
|
|
028adbff93
|
Added a structure to hold all of our recurrent and needed data that can be passed to all functions
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-24 00:01:36 +02:00 |
|
|
25fa9e74fa
|
Refactored to give username and password to login function as parameters, and use the clap framework to built the command line interface
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-23 23:35:30 +02:00 |
|
|
8e8dcece2d
|
lychee_session => &lychee_session in logout
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-21 17:10:17 +02:00 |
|
|
14d801d907
|
Added logout method and its correspoding tests
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-21 16:48:04 +02:00 |
|
|
e27c4e5f00
|
Added more tests for session::login
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-21 00:02:16 +02:00 |
|
|
b6dd77f26d
|
Added a first draft for the client unit testing using mockito
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-20 11:47:13 +02:00 |
|
|
539bf51bab
|
Replaced dotenv::var with std::env::var
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-19 23:04:43 +02:00 |
|
|
567e750f73
|
Refactored to separate session and albums related functions
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-19 11:40:02 +02:00 |
|
|
a949f196c8
|
Added test body_to_str_not_empty
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-18 10:45:07 +02:00 |
|
|
43750ab47a
|
Added test draft
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-18 10:21:47 +02:00 |
|
|
a07c11228f
|
Removed useless timelife
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-18 09:36:00 +02:00 |
|
|
c3882de838
|
Added get_albums and refactoring to make code more usable and less coupled
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-17 23:36:18 +02:00 |
|
|
503323aac9
|
Added missing slash to LYCHEE_ENPOINT concatenation
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-17 10:19:36 +02:00 |
|
|
603e8127f9
|
Added string concatenation to only have to set the base URI for lychee instance
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-17 10:17:34 +02:00 |
|
|
21fe4418f2
|
Added POST call for Session::init for demo purposes
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-16 22:20:46 +02:00 |
|
|
71ff73799a
|
Initial commit
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
|
2021-10-15 08:59:12 +02:00 |
|