diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-09-29 16:14:53 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-09-29 21:15:53 +0200 |
commit | e5283611412d4b3305ee7d549da00ca24c0e35df (patch) | |
tree | 78fffed11636a39f871935a7fa6d811e0ac26000 /lib/Command | |
parent | f13c5039d15ba384c655e1901f3bfec31a43a18f (diff) |
Add feed autodiscovery
Issue GH-415
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Command')
-rw-r--r-- | lib/Command/Config/FeedAdd.php | 2 | ||||
-rw-r--r-- | lib/Command/Config/FeedList.php | 2 | ||||
-rw-r--r-- | lib/Command/Config/FolderList.php | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/lib/Command/Config/FeedAdd.php b/lib/Command/Config/FeedAdd.php index d21f448c0..35bac6480 100644 --- a/lib/Command/Config/FeedAdd.php +++ b/lib/Command/Config/FeedAdd.php @@ -63,7 +63,7 @@ class FeedAdd extends Command $password = $input->getOption('password'); $feed = $this->feedService->create($user, $url, $folder, $full_text, $title, $username, $password); - $this->feedService->fetch($feed, true); + $this->feedService->fetch($feed); $output->writeln(json_encode($feed->toAPI(), JSON_PRETTY_PRINT)); diff --git a/lib/Command/Config/FeedList.php b/lib/Command/Config/FeedList.php index 57e14d339..0c547868c 100644 --- a/lib/Command/Config/FeedList.php +++ b/lib/Command/Config/FeedList.php @@ -57,5 +57,7 @@ class FeedList extends Command } $output->writeln(json_encode($this->serialize($feeds), JSON_PRETTY_PRINT)); + + return 0; } } diff --git a/lib/Command/Config/FolderList.php b/lib/Command/Config/FolderList.php index 7a2d33ab5..26c61f5cf 100644 --- a/lib/Command/Config/FolderList.php +++ b/lib/Command/Config/FolderList.php @@ -58,5 +58,7 @@ class FolderList extends Command } $output->writeln(json_encode($this->serialize($folders), JSON_PRETTY_PRINT)); + + return 0; } } |