<feed xmlns='http://www.w3.org/2005/Atom'>
<title>FreshRSS (Customized)/cli/export-zip-for-user.php, branch 1.19.2</title>
<subtitle>Customized version of FreshRSS, a self-hosted RSS feed aggregator</subtitle>
<id>https://git.rdnlsmith.com/fresh-rss-custom/atom?h=1.19.2</id>
<link rel='self' href='https://git.rdnlsmith.com/fresh-rss-custom/atom?h=1.19.2'/>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/'/>
<updated>2021-02-05T21:21:31+00:00</updated>
<entry>
<title>Add requirements check in CLI (#3410)</title>
<updated>2021-02-05T21:21:31+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2021-02-05T21:21:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=d42b4c299c7400d728a7a6eeeabe6f0f4ac3f169'/>
<id>urn:sha1:d42b4c299c7400d728a7a6eeeabe6f0f4ac3f169</id>
<content type='text'>
* Add requirements check in CLI

#fix https://github.com/FreshRSS/FreshRSS/issues/1853

* More checks

#fix https://github.com/FreshRSS/FreshRSS/issues/1853</content>
</entry>
<entry>
<title>tec: Refactor the export feature (#3045)</title>
<updated>2020-06-13T17:36:24+00:00</updated>
<author>
<name>Marien Fressinaud</name>
<email>dev@marienfressinaud.fr</email>
</author>
<published>2020-06-13T17:36:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=15505a03779326f9497644e9827477cdcc26c2d2'/>
<id>urn:sha1:15505a03779326f9497644e9827477cdcc26c2d2</id>
<content type='text'>
Even if the issue #3035 seemed pretty simple at a first glance, it was
more complicated than I expected. Because we send CSP headers AFTER
running the controller actions, it means we can't "echo" any content
from the controller. It's in fact a good practice, but it was easier at
the time we developed the feature.

To fix that, the only thing I had to do was to move the `print()` and
`readfile()` function into the view. The problem was that we needed to
output the content from the CLI too. Then, things became more
complicated. I decided to extract the export-related methods in a
`FreshRSS_Export_Service` class, in order to use it from both the
controller and the CLI. It was an opportunity to refactor the whole
feature in order to make it a bit more linear and easy to read.

Reference: https://github.com/FreshRSS/FreshRSS/issues/3035</content>
</entry>
<entry>
<title>Modify shebang to be more portable (#3038)</title>
<updated>2020-06-06T17:04:21+00:00</updated>
<author>
<name>Alexis Degrugillier</name>
<email>aledeg@users.noreply.github.com</email>
</author>
<published>2020-06-06T17:04:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=1694264e2ca454a0cc51064ed09a6ed1a759cb01'/>
<id>urn:sha1:1694264e2ca454a0cc51064ed09a6ed1a759cb01</id>
<content type='text'>
The new shebang is a portable way to find the php interpreter. It works
on Mac, GNU/Linux and BSD.</content>
</entry>
<entry>
<title>Fix filenames for files exported with CLI (#2932)</title>
<updated>2020-04-30T10:11:51+00:00</updated>
<author>
<name>Marien Fressinaud</name>
<email>dev@marienfressinaud.fr</email>
</author>
<published>2020-04-30T10:11:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=8f188ffa8498424653a3e6086ef99bbe1745cd29'/>
<id>urn:sha1:8f188ffa8498424653a3e6086ef99bbe1745cd29</id>
<content type='text'>
Filenames were created with the username of the current user. However,
when we export the files with the CLI, the current user is "_".

This commit makes the username always required in the `exportFile`
method so we make sure to always manipulate a real value. Consequently,
the filenames can be formatted correctly.

Obviously, this has absolutely no impacts since the CLI doesn't consider
the HTTP headers. It just makes things a bit more clear. It's a first
step to remove the concept of "default user".</content>
</entry>
<entry>
<title>Add an option validation on cli commands (#2278)</title>
<updated>2019-03-19T19:27:06+00:00</updated>
<author>
<name>Alexis Degrugillier</name>
<email>aledeg@users.noreply.github.com</email>
</author>
<published>2019-03-19T19:27:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=71b4226dc721bc0f23cc594760329f29e51defac'/>
<id>urn:sha1:71b4226dc721bc0f23cc594760329f29e51defac</id>
<content type='text'>
If an option used on cli is not recognized, the command
aborts and displays an error message.
If the typed option is similar to one of the recognized
options, a hint is displayed.

At the moment, there is a limitation on long options.
Short options are not validated at the moment.

See #2046</content>
</entry>
<entry>
<title>Export labels (#2217)</title>
<updated>2019-01-16T21:26:43+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2019-01-16T21:26:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=743c1b740bd8ec0b70f7058d4b52101b346a5e9c'/>
<id>urn:sha1:743c1b740bd8ec0b70f7058d4b52101b346a5e9c</id>
<content type='text'>
* Export labels

https://github.com/FreshRSS/FreshRSS/issues/2196

* Small fixes

* Backport code from 1.14.0

https://github.com/FreshRSS/FreshRSS/pull/2199/commits/4888f919f104b2d170302565e481a0b731eb4145

* More fixes
</content>
</entry>
<entry>
<title>Use __DIR__ for relative include and require</title>
<updated>2017-12-11T20:11:34+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2017-12-11T20:11:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=52d09886558361bd818182da9ddc204e83f618ba'/>
<id>urn:sha1:52d09886558361bd818182da9ddc204e83f618ba</id>
<content type='text'>
For uniformity, and to avoid having PHP searching in include_path.
http://php.net/manual/function.include.php
https://github.com/FreshRSS/FreshRSS/pull/1715
https://github.com/FreshRSS/FreshRSS/pull/1711#issuecomment-350581350
</content>
</entry>
<entry>
<title>CLI minor formatting</title>
<updated>2016-10-24T19:58:22+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2016-10-24T19:58:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=c8e5292ab7a4670ff67e587f18d7973eee2f00e6'/>
<id>urn:sha1:c8e5292ab7a4670ff67e587f18d7973eee2f00e6</id>
<content type='text'>
https://github.com/FreshRSS/FreshRSS/issues/1095
</content>
</entry>
<entry>
<title>CLI minor usage update</title>
<updated>2016-10-24T18:33:21+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2016-10-24T18:33:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=fac6c9881644160d168355af865b25285f27df82'/>
<id>urn:sha1:fac6c9881644160d168355af865b25285f27df82</id>
<content type='text'>
</content>
</entry>
<entry>
<title>CLI typo in usage example</title>
<updated>2016-10-23T11:44:14+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2016-10-23T11:44:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=1f03e8a3aec8ff4b7bbba45bc3fd14a0552c2bc4'/>
<id>urn:sha1:1f03e8a3aec8ff4b7bbba45bc3fd14a0552c2bc4</id>
<content type='text'>
</content>
</entry>
</feed>
