enbas/internal/model
Dan Anglin 42251f6df8
feat: add configuration support to enbas
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
2024-06-25 12:39:39 +01:00
..
account.go feat: add support for muting and unmuting accounts 2024-06-18 04:59:32 +01:00
application.go feat: add configuration support to enbas 2024-06-25 12:39:39 +01:00
const.go chore: make the project REUSE compliant 2024-06-02 07:53:13 +01:00
emoji.go chore: make the project REUSE compliant 2024-06-02 07:53:13 +01:00
instance_v2.go feat: add configuration support to enbas 2024-06-25 12:39:39 +01:00
list.go fix: add a new internal printer 2024-06-17 18:59:20 +01:00
poll.go fix: add a new internal printer 2024-06-17 18:59:20 +01:00
preferences.go fix: add a new internal printer 2024-06-17 18:59:20 +01:00
status.go fix: view media attachments from reposted statuses 2024-06-19 01:36:32 +01:00
status_content_type.go fix: update error handling 2024-06-02 11:35:43 +01:00
status_visibility.go fix: update error handling 2024-06-02 11:35:43 +01:00
timeline.go fix: add new type StatusList 2024-06-03 03:54:27 +01:00