Commit graph

7 commits

Author SHA1 Message Date
3b7757b1d9 chore: add support for build automation (#5)
All checks were successful
Run tests and linters / test (push) Successful in 42s
Run tests and linters / build (push) Successful in 41s
Run tests and linters / lint (push) Successful in 1m18s
This PR seeks to solve #2.

It adds a Makefile that can build, test, lint and package the code and the Forgejo workflows needed to automate the build. In addition, it resolves various issues highlighted by the linter.

Reviewed-on: #5
Co-authored-by: Emmanuel BENOÎT <tseeker@nocternity.net>
Co-committed-by: Emmanuel BENOÎT <tseeker@nocternity.net>
2024-07-26 14:07:46 +02:00
069b64672c Configuration - Changed default mode to 0644 2021-12-05 18:21:30 +01:00
44eb5c5356 Configuration - Control over command timeouts 2021-12-05 18:12:13 +01:00
29ab0fd8f0 Fixed example configuration
* LDAP attribute names are case-sensitive here
  * the ";binary" suffix is needed.
2021-12-05 13:30:05 +01:00
f677fa0b6e Config example - Comment about optional socket 2021-12-05 10:18:27 +01:00
3e088d4af7 New configuration for commands/handlers to run after updates
* The new configuration includes specific commands per file, as well
    as handlers that can be triggered by updates but will only ever run
    once.
  * For now, commands from the pre_commands section are executed, the
    rest is ignored
2021-12-04 10:40:15 +01:00
610cbf28f8 Configuration file reading
* An example configuration file has been added.
  * The data structure that corresponds to the configuration has been
    defined, and functions to load it have been added.
  * Logging using logrus and command line arguments that configure
    logging and set the configuration file's path have been added.
  * Opening the UNIX socket has been implemented.
2021-10-30 17:07:06 +02:00