Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial config support & argument parsing #1

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Initial config support & argument parsing #1

merged 1 commit into from
Dec 7, 2023

Conversation

charmitro
Copy link
Contributor

Config fields added:
Postgres
host : string
user : string
password : string
port : string
database : string

Arguments added:
"-f" | "--config-file": Config file to use

We also revisited our Makefile in this commit to avoid the following issues:

  • object files not being found, undefined functions were being called due to linking errors
  • Added DEBUG conditional flag for debug printing
  • Made CC a user-specified variable (if not specified, use gcc)
  • Add -lcyaml
  • Added valgrind

It is also safe to say that you need to install libcyaml for this patch to work on your computer.

@charmitro charmitro self-assigned this Dec 7, 2023
@charmitro charmitro merged commit 0459717 into master Dec 7, 2023
@charmitro charmitro deleted the config branch December 7, 2023 14:25
Config fields added:
       Postgres
	 host     : string
	 user     : string
	 password : string
	 port     : string
	 database : string

Arguments added:
       "-f" | "--config-file": Config file to use

We also revisited our Makefile in this commit to avoid the following
issues:
   * object files not being found, undefined functions were
   being called due to linking errors
   * Added DEBUG conditional flag for debug printing
   * Made CC a user-specified variable (if not specified, use gcc)
   * Add -lcyaml
   * Added valgrind

It is also safe to say that you need to install `libcyaml` for this
patch to work on your computer.

Signed-off-by: Charalampos Mitrodimas <charmitro@posteo.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants