Просмотр исходного кода

Document CLI example to count all feeds (#9238)

* Document CLI example to count all feeds
https://framapiaf.org/@freshrss/117171837151951502
Alexandre Alapetite 1 неделя назад
Родитель
Сommit
a6a27cb1fe
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      cli/README.md

+ 6 - 0
cli/README.md

@@ -238,6 +238,12 @@ Example to get the number of feeds of a given user:
 ./cli/user-info.php --user alex --json | jq '.[] | .feeds'
 ```
 
+Example to count the total number of feeds across all users:
+
+```sh
+./cli/user-info.php --json | jq '[.[].feeds] | add'
+```
+
 Example to get the name of the users who have not been active since a given date:
 
 ```sh