Commit graph

53 commits

Author SHA1 Message Date
9cb02f6790 clean up Error 2023-07-29 20:22:57 +01:00
7c752b7ba7 fold FetchEnv into NetworkEnv 2023-07-29 20:22:47 +01:00
f5974acd25 extracted append_line to FileEnv 2023-07-29 20:13:28 +01:00
95ed1735e7 remove FeedEnv 2023-07-29 20:03:50 +01:00
f211823884 move feed::get from FetchEnv into a pure function 2023-07-29 19:56:14 +01:00
73b9ad960b add NetworkEnv 2023-07-29 19:41:50 +01:00
87a53f8426 rename subscriptions/rs as file/read.rs 2023-07-29 19:23:03 +01:00
5931014636 extracted File::open use into FileEnv 2023-07-29 19:09:38 +01:00
92e369beab clippy fixes 2023-07-29 18:42:14 +01:00
e318f78250 add justfile with coverage creation rules 2023-07-28 20:23:04 +01:00
fd24f08428 woodpeckerci: revert when to build step
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-28 19:48:37 +01:00
d23fd7e590 woodpeckerci: promote when to root 2023-07-28 19:42:26 +01:00
040e37d2a9 woodpeckerci: always use latest run image 2023-07-28 19:39:08 +01:00
5e5613dd01 woodpeckerci: top level is steps
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-28 19:36:08 +01:00
a25d16efe2 only run ci on PR and push to main
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-28 19:32:45 +01:00
f29cab85a1 Merge branch 'main' into i5-add-tests
* main:
  i5-add-tests (part 2) (#7)
2023-07-28 18:36:01 +01:00
9057adddc3 i5-add-tests (part 2) (#7)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
closes kemitix/podal#5

Reviewed-on: #7
Co-authored-by: Paul Campbell <pcampbell@kemitix.net>
Co-committed-by: Paul Campbell <pcampbell@kemitix.net>
2023-07-28 18:35:41 +01:00
1219eef089 add tests for history::find
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-28 07:50:55 +01:00
20a4ef59d9 add test for history::add 2023-07-27 21:39:55 +01:00
defa57de25 extract test_utils module 2023-07-27 21:20:37 +01:00
d7729cc2a3 rename get as reqwest_blocking_get
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-27 19:48:44 +01:00
d8861d6f7e Add tests for feed::find
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-25 19:57:31 +01:00
50da088518 feed::find uses fetch::get 2023-07-25 19:36:56 +01:00
b8a3770a1a clippy fix 2023-07-25 19:25:45 +01:00
1fd5df7151 Use Env to pass in functions
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-25 19:24:15 +01:00
Paul Campbell
9087482672 Merge branch 'main' into i5-add-tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-07-25 17:04:40 +01:00
8080352277 add stub for testing feed::find 2023-07-25 17:02:31 +01:00
Paul Campbell
7d5bfa76a0 Merge pull request 'i5-add-tests' (#6) from i5-add-tests into main
Reviewed-on: #6
2023-07-25 16:59:24 +01:00
4a19470712 add woodpecker config 2023-07-25 16:58:17 +01:00
6d967f5eae Add tests for loading subscriptions file 2023-07-25 16:57:08 +01:00
65156db75e provide history find/add and fetch download as parameters to main 2023-07-25 14:56:59 +01:00
17a92e45e4 provide feed find/get functions as parameters from main 2023-07-25 14:47:33 +01:00
e1ea5a81ec extract fetch 2023-07-25 10:58:56 +01:00
13600e0927 extract subscriptions 2023-07-25 10:57:19 +01:00
a60999785b extract history::add 2023-07-25 10:55:02 +01:00
8b7c88e85c extract history::find 2023-07-25 10:53:26 +01:00
05f7258978 inline get_link function 2023-07-25 10:51:14 +01:00
0b6903404a extract feed::get 2023-07-25 10:50:00 +01:00
507447f6ad extract prelude and feed::find 2023-07-25 10:47:54 +01:00
ec20864dac extract errors.rs 2023-07-25 10:36:08 +01:00
43be49910b split main.rs into lib.rs and main.rs 2023-07-25 10:33:41 +01:00
97ce2b374f add clap dependency 2023-07-25 10:28:38 +01:00
de28bae66b just show title of entry being downloaded 2023-07-24 07:55:38 +01:00
2c953b5997 extract site as a parameter 2023-07-24 07:40:20 +01:00
2cd5b20840 ignore user config and files 2023-07-24 07:37:08 +01:00
1896a57b93 subscriptions is just the channel name (with @ prefix) 2023-07-24 07:35:55 +01:00
e18c0f8bea display command output while it is running 2023-07-24 07:24:03 +01:00
47ff64585b replace youtube-dl with yt-dlp 2023-07-23 20:21:36 +01:00
60dffe9824 remove debug logs 2023-07-23 20:21:17 +01:00
c512a6f83c inlining 2023-07-23 20:09:55 +01:00