- Move the build and application information to the internal info
package.
- Move the user agent and redirect URI string to the internal client
package.
Summary:
If the user hasn't supplied the path to a configuration directory and
Enbas fails to find the user's default home configuration directory,
Enbas will now return an error message back to the user. Previously
Enbas would try to, instead, calculate the configuration directory
using the user's current directory.
Changes:
- Return an error if the user's home configuration directory cannot
be found.
- Add tests to the internal.config package.
- Update the tests in internal.utilities package.
PR: #54
Changes:
- Fixed the issue where the instance's FQDN was not included in the
cache directories' path when the user sets a custom path to the root
cache directory.
- Added unit tests for the cache directory calculations.
- Updated REUSE.toml to fix compliance failures.
- Added small changes/fixes based on feedback from golangci-lint.
PR: #53
Resolves: #51
SUMMARY
This commit adds configuration support to enbas. The configuration is
stored as a JSON file in the user specified configuration directory.
When using enbas for the first time, the user will first need to
execute the new init command in order to generate the configuration.
Once this has been generated the user can edit the settings to
personalise their experience, login to their account and use enbas as
normal.
For now the configurable settings included in the configuration
are as follows:
- The path to the credentials file (by default this is set to a file in
the same directory as the configuration file).
- The path to the cache directory.
- The character limit used for line wrapping.
- The programs used for integrations such as paging, media viewing,
opening URLs, etc.
CHANGES
- added the new config type.
- added the new init executor for generating a new configuration file.
- removed the following top level flags in favour of the new
configration support.
- cache-dir
- pager
- image-viewer
- video-player
- max-terminal-width
- added a new error type for use when an unknown media attachment ID
is specified.
- updated the usage function for the executors to support a case
where a flagsets has no flags.
- update .golangci.yaml to disable some linters
This commit adds integration to external image viewers and video players
to allow users to view image and video attachments.
Enbas creates a cache directory where the media is downloaded to before
opening the external program for viewing.
Users can view one or more media attachments from a single status.